25 June 2011

Installing CUDA 4.0 on Windows 7 64bit

Download and Install  -
1. Install CUDA developer driver.
    You can get cuda developer driver for notebooks from here.
    You can get cuda developer driver general from here.
    Double click “devdriver_3.2_winvista-win7_32_263.06_general” to install.
2. Install CUDA Toolkit. You can download cuda toolkit from here.
    Double click “cudatoolkit_3.2.16_win_32” to install.
3. Install CUDA Sdk from here.
    Double click “gpucomputingsdk_3.2.16_win_32” to install.
4. Install Visual Studio 2008 from Microsoft.

      All CUDA downloads can be done directly from its site.

After installation of all these drivers and SDKs, run the examples in the CUDA SDK to make sure everything works. If they work, you have successfully installed the correct CUDA driver.

Visual Studio Settings
Copy all files in -
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\extras\visual_studio_integration\rules
to directory -
C:\Program Files\Microsoft Visual Studio 9.0\VC\VCProjectDefaults

Now start Visual Studio 2008 and go to -
Tools -> Option -> Project and Solution -> VC++ Directory
1. To the Executable files drop down add -
    C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\common\bin
    C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin

2. To the Include files drop down add -
    C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\common\inc
    C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include

3. To the Library files drop down add -
    C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include
    C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\common\lib\x64


Now your visual studio environment is ready to build cuda projects.

No comments:

Post a Comment