Nsight™ Visual Studio Edition 2.2 安装笔记

NVIDIA® Nsight™ 开发平台,作者用来与VS2010集成,用于编译调试跟踪CUDA C程序。官网介绍:

http://developer.nvidia.com/content/nvidia-nsight-visual-studio-edition

实际上也可以与VS2008 SP1集成(注意是SP1,正式版不行)。


Step 1: Download required NVIDIA 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-bit64-bit
Quadro Desktop and Tesla (301.42)32-bit64-bit
GeForce and Quadro Notebook (301.42)32-bit64-bit

第一步是安装显卡驱动程序,我的是笔记本,WIN7 64位。所以选择 : GeForce and Quadro Notebook (301.42) 64-bit

实际上以前已经装过驱动,但是版本过旧,卸载了重新安装。


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 inclusion of supported CUDA toolkits bundled with the Nsight installers.

For developers who develop BOTH CUDA 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 Toolkit32-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 Installer32-bit (Nsight only)64-bit (Nsight only)

第二步下载Nsight™ Visual Studio Edition 2.2。可以有两个选择,前者是捆绑了CUDA Toolkit,后者没有。选择前者安装报错,说是缺少cab文件。所以选择了后者,单独安装。(那么Tookkit也要提前单独安装,选择了CUDA  Tookkit V4.2 。下载页面是:http://developer.nvidia.com/cuda/cuda-toolkit


SDK的安装没有,在如下链接下载:

http://developer.nvidia.com/cuda/cuda-downloads



安装完毕。


打开VS2010,新建项目,便会出现CUDA选项:



但现在新建/打开 项目还是会失败,报错:One or more projects in the solution were not loaded correctly.Please see the Output Window for details.


解决方法在C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\extras\visual_studio_integration\MSBuildExtensions.README.txt

是:

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.


附录

让visiual assisit x高亮显示cuda字符,参考:

http://www.cnblogs.com/chunshan/archive/2011/08/15/2139992.html



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值