NVIDIA CUDA C GETTING STARTED GUIDE FOR MICROSOFT WINDOWS

DOWNLOAD THE CUDA SOFTWARE


The CUDA software is available athttp://www.nvidia.com/object/cuda_get.html.
Choose the platform you are using and download the following:


  The CUDA Driver
The CUDA Driver is integrated into the NVIDIA ForceWare® graphics driver, which can be downloaded from
http://www.nvidia.com/drivers. To use the CUDA Toolkit, you must have at least the version of the NVIDIA graphics driver specified in the CUDA Toolkit Release Notes. A developer version of the NVIDIA graphics driver is available from the CUDA software download page that corresponds to the version of the CUDA Toolkit also available for download there, but any newer NVIDIA driver will work as well.


  The CUDA Toolkit
The CUDA Toolkit contains the tools needed to compile and build a CUDA application in conjunction with Microsoft Visual Studio. It includes tools, libraries,header files, and other resources.


  The GPU Computing SDK
The GPU Computing SDK (software development kit) includes sample projects that have all the necessary project configuration and build files to perform one-clickbuilds using Microsoft Visual Studio.These software packages are available for both 32-bit Windows and 64-bit Windows.

 

INSTALL THE CUDA SOFTWARE

 

Use the following procedure to install the CUDA software:


1.  Install the CUDA Toolkit.
Install the CUDA Toolkit by executing the Toolkit installer package and following the on-screen prompts. The CUDA Toolkit installation defaults to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v#.#, where #.# is version number 3.2 or higher. This directory contains the following:


  Bin\ - the compiler executables and runtime libraries
  Include\ - the header files needed to compile CUDA programs
  Lib\ - the library files needed to link CUDA programs
  Doc\ - the CUDA C Programming Guide, CUDA C Best Practices Guide, documentation for the CUDA libraries, and other CUDA Toolkit-related documentation


Note: CUDA Toolkit versions 3.1 and earlier installed into C:\CUDA by default, requiring prior CUDA Toolkit versions to be uninstalled before the installation of new versions. Beginning with CUDA Toolkit 3.2, multiple CUDA Toolkit versions can be installed simultaneously.


2.  Install the GPU Computing SDK.
Install the GPU Computing SDK by executing the installer package and following the on-screen prompts. The GPU Computing SDK is installed in C:\Documents and Settings\All Users\Application Data\NVIDIA Corporation\NVIDIA GPU Computing SDK (or under %ProgramData%\NVIDIA Corporation\... on Windows Vista or later) and contains source code for many example problems and templates for Microsoft Visual Studio.

 

VERIFY THE INSTALLATION

Before continuing, it is important to verify that the CUDA programs can find and
communicate correctly with the CUDA-enabled hardware. To do this, you need to
compile and run some of the included sample programs.
Compiling the Examples
The version of the CUDA Toolkit can be checked by running nvcc -V in a Command
Prompt window. You can display a Command Prompt window by going to:
Start->All Programs->Accessories->Command Prompt
The GPU Computing SDK includes sample programs in both source and compiled form.

 
To verify a correct configuration of the hardware and software, it is highly recommended that you run the bandwidthTest program located in C:\Documents and Settings\All Users\Application Data\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\bin\win32\Release, presuming that you used the default installation directory structure. (On 64-bit versions of Windows, the directory name ends with \win64\Release.) If CUDA is installed and configured correctly, the output should look similar to Figure 1.

The device name (second line) and the bandwidth numbers vary from system to system. The important items are the second line, which confirms a CUDA device was found, and the second-to-last line, which confirms that all necessary tests passed.

If the tests do not pass, make sure you do have a CUDA-enabled NVIDIA GPU on your system and make sure it is properly installed.To see a graphical representation of what CUDA can do, run the sample Particles
executable in:
  For Windows XP:
c:\Documents and Settings\All Users\Application Data\NVIDIA GPU Computing SDK\C\bin\win32\Release (or…\win64\Release on 64-bit Windows)
  For Windows Vista and Windows 7:
C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\bin\win32\Release (or …\win64\Release on 64-bit Windows)

 

-------From Nvidia

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值