📅 2011-Jan-25 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ cuda, syntax highlighting, visual studio ⬩ 📚 Archive
It is painful to work with CUDA source files
(*.cu) in Visual Studio without syntax highlighting. Nvidia
provides a usertype.dat file that can be used for this
purpose. Here is how:
Install the GPU Computing SDK. Note that this is
not the same as the CUDA Toolkit, which is a
prerequisite for the SDK. The SDK installs into the
%NVSDKCOMPUTE_ROOT% directory. On Windows 7, typically this
is
C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 3.2
Go to
the %NVSDKCOMPUTE_ROOT%\C\doc\syntax_highlighting\visual_studio_8
directory. Use the usertype.dat file that is here and
follow the instructions in the Readme.txt file that is
here.
Restart Visual Studio.
Tried with: CUDA 3.2