"$(CUDA_BIN_PATH)/nvcc.exe" -ccbin "$(VCInstallDir)bin" -c -D_DEBUG -DWIN32 -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/Wp64,/Od,/Zi,/RTC1,/MTd -I"$(CUDA_INC_PATH)" -I./ -I../../common/inc -o $(ConfigurationName)/$(InputName).obj $(InputFileName)
-ccbin:Specify the directory in which the host
compiler executable (Microsoft Visual Studion
cl, or a gcc derivative) resides. By default, this
executable is expected in the current executable
search path.
指定用于执行的主机编译器(vs上的cl,或者一个gcc衍生物)存在的目录。
默认情况下,该目录指向当前可执行文件搜索目录。
-c:Compile each .c/.cc/.cpp/.cxx/.cu input file
into an object file.
把每个 .c/.cc/.cpp/.cxx/.cu 类型的输入文件编译成目标文件.
-D_DEBUG -DWIN32 -D_CONSOLE -D_MBCS:
Specify macro definitions for use during
preprocessing or compilation
在预编译或者编译的时候指定宏定义
-Xcompiler :Specify options directly to the
compiler/preprocessor.
指定选项直接对应于编译器或者预编译器
/EHsc,/W3,/nologo,/Wp64,/Od,/Zi,/RTC1,/MTd :
编译器或者预编译的选项
-I:指定包含的搜索路径
本文详细介绍了 NVIDIA 的 CUDA 编译器 nvcc 的各项编译选项,包括指定主机编译器路径、生成目标文件、宏定义设置、指定编译器选项及搜索路径等。这些选项对于使用 CUDA 进行高性能计算编程至关重要。
4万+

被折叠的 条评论
为什么被折叠?



