TotalView : TotalView User Guide : PART V GPU Debugging : Debugging CUDA Programs : Compiling for Debugging : Compiling for Fermi : Compiling for Fermi and Tesla
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.