nvcc

The NVIDIA CUDA Compiler Driver. More information: https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc.

nvcc path/to/source.cu -o path/to/executable

nvcc path/to/source.cu -o path/to/executable --debug --device-debug

nvcc path/to/source.cu -o path/to/executable -Ipath/to/includes -Lpath/to/library -llibrary_name

nvcc path/to/source.cu -o path/to/executable --generate-code arch=arch_name,code=gpu_code_name