NVIDIA nsight
Development Platform, which is used to integrate with vs2010 for compilation, debugging, and tracking Cuda CProgram. Official Website introduction:
Http://developer.nvidia.com/content/nvidia-nsight-visual-studio-edition
It can also be used with vs2008
SP1Integration (note that it is SP1, but not the official version ).
Step 1: DownloadRequiredNVIDIA display driver for your target development environment
Nsight Visual Studio Edition 2.2 requires version 301.42 or newer of the NVIDIA display driver.
geforce desktop (301.42) |
32-bit |
64-bit |
Quadro desktop and Tesla (301.42) |
32-bit |
64-bit |
geforce and Quadro notebook (301.42) |
32-bit |
64-bit |
Step 1Is to install the graphics card driver, my laptop, win7 64-bit. So select:Geforce and Quadro notebook (301.42) 64-bit
In fact, the driver has been installed before, but the version is old, and the driver is uninstalled and re-installed.
Step 2: Download nsight Visual Studio Edition 2.2
Select the platform corresponding to your system and development needs.
Note: All installers contain complete nsight components, including the host and monitor applications. The only difference between the two options below is the sion of supported Cuda toolkits bundled with the nsight installers.
For developers who developBothCuda and graphics, Nsight Visual Studio packages bundled with supported versions of Cuda toolkit are available below.Separate Cuda toolkit download and installation is not required.
nsight Visual Studio Edition 2.2 installer bundled with Cuda toolkit |
32-bit (bundled with Cuda Toolkit) |
64-bit (bundled with Cuda Toolkit) |
for graphics only developers or for those who have already installed a supported version of The Cuda toolkit, complete nsight Visual Studio packages are available below. these installers do not bundle supported versions of Cuda toolkit. to
Use Cuda related features, please download the Cuda Toolkit (supported versions are 4.2, 4.1 and 4.0) available at http://developer.nvidia.com/cuda-toolkit-archive
Nsight Visual Studio Edition 2.2 Installer |
32-bit (Nsight only) |
64-bit (Nsight only) |
Step 2 downloadNsight Visual Studio Edition 2.2. There are two options: the former is bundled with the Cuda toolkit, and the latter is not. If you select the former, an error is reported, indicating that the cab file is missing. So select the latter and install it separately. (You must install tookkit separately in advance and select Cuda.
Tookkit v4.2. Download Page: http://developer.nvidia.com/cuda/cuda-toolkit)
The SDK is not installed. Download it at the following link:
Http://developer.nvidia.com/cuda/cuda-downloads
Installation is complete.
Open vs2010 and create a project. The Cuda option is displayed:
However, creating or opening a project still fails,Error: one or more projects in the solution were not loaded correctly. Please see the output window for details.
Solution: Go to c: \ Program Files \ nvidia gpu computing toolkit \ Cuda \ v4.2 \ extras \ visual_studio_integration \ msbuildextensions.readme.txt
Yes:
Copy all files under msbuildextension subfolder directly into c: \ Program Files \ msbuild \ Microsoft. CPP \ v4.0 \ buildcustomizations (c: \ Program Files (x86) \ msbuild \ Microsoft. CPP \ v4.0 \ buildcustomizations on 64 bit) folder.
Appendix
To highlight Cuda characters in visiual assisit X, refer:
Http://www.cnblogs.com/chunshan/archive/2011/08/15/2139992.html