NVCC options compatibility (v1.4)
Parameter | Description | Status |
| Specifies the name and location of the output file. | ✅ |
| Creates all intermediate files in the object file's directory. | ✅ |
| Specifies header files to pre-include during preprocessing. | ✅ |
| Specifies libraries to use in the linking stage, without the file extension. | ✅ |
| Defines macros to use during preprocessing. | ✅ |
| Undefines an existing macro during preprocessing or compilation. | ✅ |
| Specifies include search paths. | ✅ |
| Specifies system include search paths. | ✅ |
| Specifies library search paths. | ✅ |
| Specifies the output file directory. | ✅ |
| Specifies the dependency output file. | ✅ |
| Adds an empty target for each dependency in the dependency file. | ✅ |
| Specifies the directory of the default host compiler executable. | ✅ |
| Disables the nvcc check for supported host compiler versions. | ✅ |
| Specifies the path to the archiver tool for creating a static library with the | ✅ |
| Specifies the type of CUDA runtime library to use: | ✅ |
| Specifies the type of CUDA device runtime library to use: | ✅ |
| Specifies the directory containing the libdevice library files. | ✅ |
| Specifies the subfolder name in the targets directory that contains the default include and library paths. | ✅ |
| Specifies the default behavior: compile and link all input files. | ✅ |
| Compiles input files into object files, if needed, and adds the results to the specified library output file. | ✅ |
| Links object files with relocatable device code, | ✅ |
| Compiles each input file (.c, .cc, .cpp, .cxx, .cu) into an object file containing relocatable device code. This is equivalent to | ✅ |
| Compiles each input file (.c, .cc, .cpp, .cxx, .cu) into an object file containing executable device code. This is equivalent to | ✅ |
| Compiles each .cu input file into a .cu.cpp.ii file. Not supported with | ✅ |
| Compiles each .c, .cc, .cpp, .cxx, and .cu input file into an object file. | ✅ |
| Compiles all | ✅ |
| Compiles all | ✅ |
| Compiles all | ✅ |
| Preprocesses all .c, .cc, .cpp, .cxx, and .cu input files. | ✅ |
| Generates a Makefile-compatible dependency file for the input file. | ✅ |
| Same as | ✅ |
| Generates a dependency file and compiles the source. This option cannot be used with | ✅ |
| Same as | ✅ |
| Compiles and links all input files into an executable, then runs it. | ✅ |
| Instruments the generated code for | ✅ |
| Generates debug information for host code. | ✅ |
| Generates debug information for device code. | ✅ |
| Generates extensible whole-program device code, allowing some calls to be resolved at link time with | ✅ |
| Disables compression of device code in the fatbinary. | ✅ |
| Generates line-number information for device code. | ✅ |
| Provides optimization reports for a specified | ✅ |
| Specifies the optimization level for host code. | ✅ |
| Enables link-time optimization (LTO) for device code. Alias: | ✅ |
| Sets the maximum number of template instantiation notes for a single warning or error. | ✅ |
| Sets the maximum instantiation depth for template classes. | ✅ |
| Disables exception handling for host code. | ✅ |
| Generates a shared library during the linking stage. | ✅ |
| Explicitly specifies the language of input files, overriding inference from the file extension. | ✅ |
| Selects a particular C++ dialect. | ✅ |
| Prevents | ✅ |
| Experimental: Allows host code to invoke | ✅ |
| Allows | ✅ |
| Specifies a 32-bit or 64-bit architecture. | ✅ |
| Uses the host linker script to support CUDA-specific requirements when building executables or shared libraries (GNU/Linux only). | ✅ |
| Enables generation of a host linker script that augments an existing host linker script (GNU/Linux only). | ✅ |
| Enables device code optimization. When specified with | ✅ |
| With | ✅ |
| Runs the optimizer passes before generating the LTO IR. | ✅ |
| Passes options directly to the host compiler/preprocessor. | ✅ |
| Passes options directly to the host linker. | ✅ |
| Passes options directly to the library manager. | ✅ |
| Passes options directly to ptxas, the PTX optimizing assembler. | ✅ |
| Passes options directly to | ✅ |
| Forwards unknown options to the host compiler. | ✅ |
| Forwards unknown options to the host linker. | ✅ |
| Ignores configurations from the | ✅ |
| Specifies the maximum number of parallel threads for compilation steps. This option can improve compilation speed when compiling for multiple architectures. | ✅ |
| Lists the compilation sub-commands without executing them. | ✅ |
| Lists compilation sub-commands as they are executed. | ✅ |
| Keeps all intermediate files that are generated during internal compilation steps. | ✅ |
| Keeps all intermediate compilation files in this directory. | ✅ |
| Deletes all non-temporary files that the same nvcc command would generate without this option. | ✅ |
| Specifies command-line arguments for the executable when used in conjunction with | ✅ |
| Specifies the input drive prefix. | ✅ |
| Specifies the dependency drive prefix. | ✅ |
| Specifies the drive prefix. | ✅ |
| Specifies the target name of the generated rule when generating a dependency file. | ✅ |
| Prevents | ✅ |
| Skips the device link step when linking object files. | ✅ |
| Disables the nvcc check for supported host compiler versions. | ✅ |
| Specifies the stream that CUDA commands from the compiled program will be sent to by default. | ✅ |
| Specifies the NVIDIA virtual GPU architecture to compile for. | ✅ |
| Specifies the NVIDIA virtual GPU architecture to compile for. | ✅ |
| Specifies the name of the NVIDIA GPU to assemble and optimize PTX for. | ✅ |
| Provides a more general way to specify targets than | ✅ |
| Enables or disables the generation of relocatable device code. If disabled, executable device code is generated. Relocatable device code must be linked before it can be executed. | ✅ |
| Specifies the global entry functions for which to generate code. PTX is generated for all entry functions, but only the selected entry functions are assembled. Function names must be mangled. | ✅ |
| Specifies the maximum number of registers that GPU functions can use. | ✅ |
| Uses the fast math library. Implies | ✅ |
| Controls single-precision denormal support. | ✅ |
| Controls single-precision division and reciprocals. | ✅ |
| Controls single-precision square root. | ✅ |
| Enables or disables contracting floating-point multiplies and adds into fused multiply-add (FMA) operations. | ✅ |
| Enables more aggressive device code vectorization. | ✅ |
| Compiles patch code for CUDA tools. This implies | ✅ |
| In whole-program compilation mode, preserves user-defined external linkage | ✅ |
| Inhibits all warning messages. | ✅ |
| Interleaves source code in the generated PTX. | ✅ |
| Asserts that all kernel pointer parameters are | ✅ |
| Suppresses warnings about deprecated GPU target architectures. | ✅ |
| Suppresses warnings about using a deprecated entity. | ✅ |
| Generates warnings when member initializers are reordered. | ✅ |
| Generates a warning if a kernel launch is missing an explicit stream argument. | ✅ |
| Generates a warning when an extended lambda implicitly captures | ✅ |
| Makes warnings of the specified kinds into errors. | ✅ |
| Displays a diagnostic number for any message generated by the CUDA frontend compiler. Does not affect host compiler messages. | ✅ |
| Disables the display of a diagnostic number for any message generated by the CUDA frontend compiler. Does not affect host compiler messages. | ✅ |
| Emits an error for specified diagnostic message(s) generated by the CUDA frontend compiler. This does not affect diagnostics generated by the host compiler/preprocessor. | ✅ |
| Suppresses specified diagnostic message(s) generated by the CUDA frontend compiler. This does not affect diagnostics generated by the host compiler/preprocessor. | ✅ |
| Emits a warning for specified diagnostic message(s) generated by the CUDA frontend compiler. This does not affect diagnostics generated by the host compiler/preprocessor. | ✅ |
| Shows resource usage of the GPU code, such as registers and memory. | ✅ |
| Prints help information on this tool. | ✅ |
| Prints version information on this tool. | ✅ |
| Includes command line options from a specified file. | ✅ |
| Generates and appends a CSV table of compilation phase timings to the specified file. Column headings are added if the file is empty. Use | ✅ |
| Specifies the configuration ( | ✅ |
| Lists the GPU architectures (e.g., | ✅ |
| Lists the virtual device architectures (e.g., | ✅ |
| Generates a warning when a | ✅ |
| Enables the compiler to perform expensive optimizations using maximum available resources (memory and compile-time). If unspecified, this feature is enabled by default for optimization level | ✅ |
| Generates a relocatable object file. | ✅ |
| Sets the default cache modifier for global/generic load. Default value: ca. | ✅ |
| Sets the default cache modifier for global/generic store. | ✅ |
| Generates debug information for device code. | ✅ |
| Disables use of the optimizer constant bank. | ✅ |
| Specifies the global entry functions for which to generate code. | ✅ |
| Enables or disables contracting floating-point multiplies and adds into fused multiply-add (FMA) operations. | ✅ |
| Forces a specified cache modifier on global or generic loads. | ✅ |
| Forces a specified cache modifier on global or generic stores. | ✅ |
| Generates line-number information for device code. | ✅ |
| Specifies the name of the NVIDIA GPU to generate code for. This option also accepts virtual compute architectures to suppress code generation, which is useful for parsing only. Allowed values include architectures from | ✅ |
| Prints help information. | ✅ |
| Specifies a 32-bit or 64-bit architecture. | ✅ |
| Specifies the maximum number of registers that GPU functions can use. | ✅ |
| Specifies the optimization level. Default value: 3. | ✅ |
| Includes command-line options from a specified file. | ✅ |
| Instructs ptxas to generate relocatable references for variables and preserve the corresponding relocations in the linked executable. | ✅ |
| Generates stack-pointer bounds-checking code sequences. This option is enabled automatically when | ✅ |
| Enables verbose mode, which prints code generation statistics. | ✅ |
| Prints version information. | ✅ |
| Makes all warnings into errors. | ✅ |
| Generates a warning if double-precision values are used in an instruction. | ✅ |
| Generates a warning if local memory is used. | ✅ |
| Generates a warning if registers are spilled to local memory. | ✅ |
| Compiles patch code for CUDA tools. Cannot be used with | ✅ |
| Generates position-independent code. | ✅ |
| Specifies the maximum number of threads per thread block. | ✅ |
| Specifies the minimum number of CTAs per SM. | ✅ |
| Inhibits all warning messages. | ✅ |
| Preserves resolved relocations in the linked executable. | ✅ |
| Enables verbose mode, which prints code generation statistics. | ✅ |
| Makes all warnings into errors. | ✅ |
| Suppresses the warning that an object file lacks code for the target architecture. | ✅ |
| Suppresses the warning for an undetermined stack size. | ✅ |
| Dumps call graph and register usage information. | ✅ |