Totalview® User Guide
:
PART V Using the CUDA Debugger
:
Chapter 26 CUDA Debugging Tutorial
:
Compiling for Debugging
:
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.