How can I compile a CUDA program for sm_1X AND sm_2X when I have a surface declaration
问题 I am writing a library that uses a surface (to re-sample and write to a texture) for a performance gain: ... surface<void, 2> my_surf2D; //allows writing to a texture ... The target platform GPU has compute capability 2.0 and I can compile my code with: nvcc -arch=sm_20 ... and it works just fine. The problem is when I am trying to develop and debug the library on my laptop which has an NVIDIA ION GPU with compute capability 1.1 (I would also like my library to be backwards compatible). I