Introduction
之前记录过NVCC编译过程,但是在修改独立makefile时,可能会比较麻烦,而且如果是nsight里的项目,每次build makefile都会被重置。
但实际上nsight有设置编译参数的选项。
(本文将不定期更新,以完善nsight的build设置说明)
编译器设置
在项目上右键,弹出菜单的最后一个即为properties。
展开Build--》Settings,即可看到各种参数设置。
keep
keep的含义:
Keep all intermediate files that are generated during internal compilation steps.
保留编译过程中的所有中间文件
keep-dir含义:
Keep all intermediate files that are generated during internal compilation steps in this directory.
将中间文件保存到指定的文件夹
因此启用keep的方式就找到Tool Settings -->Miscellaneous,勾选Keep Intermidiate files,并设置中间文件保存的文件夹。
lineinfo
-lineinfo
Generate line-number information for device code.
在设备代码上标注对应的源代码行序号
很多ptx、sass的可视化工具,比如CudaPAD主要就是利用这个信息来做的可视化。
Comments