cuda: detect target architecture in PTX code