diff --git a/pages/common/nvcc.md b/pages/common/nvcc.md new file mode 100644 index 000000000..f97a3c914 --- /dev/null +++ b/pages/common/nvcc.md @@ -0,0 +1,20 @@ +# nvcc + +> The NVIDIA CUDA Compiler Driver. +> More information: . + +- Compile a CUDA program: + +`nvcc {{path/to/source.cu}} -o {{path/to/executable}}` + +- Generate debu[g] information: + +`nvcc {{path/to/source.cu}} -o {{path/to/executable}} --debug --device-debug` + +- Include libraries from a different path: + +`nvcc {{path/to/source.cu}} -o {{path/to/executable}} -I{{path/to/includes}} -L{{path/to/library}} -l{{library_name}}` + +- Specify the compute capability for a specific GPU architecture: + +`nvcc {{path/to/source.cu}} -o {{path/to/executable}} --generate-code arch={{arch_name}},code={{gpu_code_name}}`