1、安装好CUDA SDK后,找到安装目录D:/softwareofliuting/CUDA SDK/doc/syntax_highlighting/visual_studio_8。(我安装在D:/softwareofliuting) 2、打开readme.txt,按照上面的步骤进行就可以了。 ant pretty syntax highlighting when editing your .cu files in Visual Studio? Heres how: --- Visual Studio .Net 2005 / Visual Studio 8: 1. If you don't have a usertype.dat file in your "Microsoft Visual Studio 8/Common7/IDE" folder, then copy the included usertype.dat file there. If you do, append the contents of the included usertype.dat onto the end of the "Microsoft Visual Studio 8/Common7/IDE/usertype.dat" //打开的安装目录下除了read.txt之外,还有usertype.dat文件,将这个文件拷贝到Microsoft Visual Studio 8/Common7/IDE目录下。 2. Start Visual Studio 8. Select the menu "Tools->Options...". Open "Text Editor" in the tree view on the left, and click on "File Extension". Type cu in the "Extension" box, and click "Add". Click "OK" on the dialog box. //启动vs2005,选择“工具”菜单中的“选项”,选择“文本编辑器”中的“文件扩展名”,在右边的“扩展名”对应的栏里输入“cu”,单击“确定”。 3. Restart Visual Studio and your shaders should now have syntax highlighting.
让vs2005支持NVDIA CUDA的cu文件语法高亮显示
最新推荐文章于 2024-07-19 15:28:34 发布