CUDA中NVCC的编译器选项

"$(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:指定包含的搜索路径

你可能感兴趣的:(CUDA中NVCC的编译器选项)