NVIDIA CUDA C GETTING STARTED GUIDE FOR MICROSOFT WINDOWS

來源:互聯網
上載者:User

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 fromhttp://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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.