1

CUDA.rules 文件的命令行是:

echo [CompilerPath] [Keep] [CInterleavedPTX] [ExtraNvccOptions] [Arch] -ccbin "$(VCInstallDir)bin" [Emulation] [FastMath] [Defines] -Xcompiler "/EHsc [Warning] /nologo [Optimization] /Zi [ RuntimeChecks] [Runtime] [TypeInfo] [ExtraCppOptions]" [Include] [MaxRegCount] [PtxAsOptionV] [NvccCompilation] "$(InputPath)"

[CompilerPath] [Keep] [CInterleavedPTX] [ExtraNvccOptions] [Arch] -ccbin "$(VCInstallDir)bin" [Emulation] [FastMath] [Defines] -Xcompiler "/EHsc [Warning] /nologo [Optimization] /Zi [RuntimeChecks ] [运行时] [TypeInfo] [ExtraCppOptions]" [包括] [MaxRegCount] [ptxasoptionv] [NvccCompilation] "$(InputPath)""

为清楚起见,我添加了一行,因为它显示了两个相同的命令(据我所知),除了第一个命令前面有“echo”。有谁知道这样做的目的是什么?

谢谢

4

2 回答 2

3

第一个只告诉你命令将是什么,第二个实际执行命令。
echo是显示文本的dos命令:

C:\>echo bla bla bla
bla bla bla
于 2009-12-21T16:17:36.010 回答
1

第一行将在输出窗口输出命令行

于 2009-12-21T16:12:29.297 回答