My goal is to integrate CUDA programs on this platform. Because my machine is 64 bit but I have
32 bit target (which means the project is for 32 bit machines) I have to do some special things to make CUDA work in my code. CUDA code is compiled by a special nVIDIA compiler called nvcc. My machine already had the CUDA drivers installed but you can get them from nVIDIA. To get started with CUDA:
1. Download and install proper drivers for your machine:
http://www.nvidia.com/Download/index5.aspx?lang=en-us
2. Download and install the CUDA toolkit:
http://developer.nvidia.com/object/cuda_2_3_downloads.html
3. Download and install the software development kit (SDK)
http://developer.nvidia.com/object/cuda_2_3_downloads.html
I currently have CUDA 2.3.
To enable syntax highlighting on CUDA:
1. copy the usertype.dat file from:
C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\doc\syntax_highlighting\visual_studio_8\usertype.dat
to:
C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE
or whatever the path is on your machine.
2. Open visual studio and to to options->text editor->file extension
3. Add 'cu' in the box at the top as shown below then apply:

No comments:
Post a Comment