Compiling for Fermi and Tesla
To compile for both Fermi and Tesla GPUs, use the following compiler options:
-gencode arch=compute_20,code=sm_20 -gencode arch=compute_10,code=sm_10
See the NVIDIA documentation for complete instructions on compiling your CUDA code.