nvcc
The NVIDIA CUDA Compiler Driver. tldr-pages
On several platforms
Several platforms
Compile a CUDA program
nvcc path/to/source.cu --output-file path/to/executableIdentifyGenerate debug information
nvcc path/to/source.cu --output-file path/to/executable --debug --device-debugIdentifyInclude libraries from a different path
nvcc path/to/source.cu --output-file path/to/executable --include-path path/to/includes --library-path path/to/library --library library_nameIdentifySpecify the compute capability for a specific GPU architecture
nvcc path/to/source.cu --output-file path/to/executable --generate-code arch=arch_name,code=gpu_code_nameIdentify