Thursday, February 11, 2010

CPU Specs, Getting CUDA, and syntax highlighting

I have a Dell M6500 with a Quadro 2800M running Windows 64-bit Enterprise. I am using a code base developed by someone else that is a combination of managed C++ and C++. I have to get my CUDA code to run in this project. I am using Microsoft Visual Studio 2005 that I got for free from Microsoft Dreamspark (https://www.dreamspark.com). If your school participates then you can download any of the software for free. This is a lot easier than dealing with my schools computer support.

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