Nsight™ Visual Studio Edition 2.2 安裝筆記

來源:互聯網
上載者:User

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-bit 64-bit
Quadro Desktop and Tesla (301.42) 32-bit 64-bit
GeForce and Quadro Notebook (301.42) 32-bit 64-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 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)

第二步下載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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.