Microsoft certification counseling: How to install cuda

  

Cuda installation under Windows7

Install cuda under windows7,

First, it is very simple, download and install related driver and toolki from cuda official website , SDK (the three software packages are placed on the official website, can be downloaded directly according to the prompts);

Second, after installing the above three, it automatically sets CUDA_INC_PATH, CUDA_LIB_PATH, CUDA_BIN_PATH, etc. Environment variables, these three environment variables can be added to the path path;

Third, use CUDA_VS_Wizard, that is, download and install CUDA_VS_Wizard in (http://sourceforge.net/projects/cudavswizard/).


Fourth, after installation, in order to develop cuda program under VS, set the environment variable CUDA_DLL (the environment variable can be set casually), the set values ​​are:

1, $CUDA_INSTALL_PATH_ROOT\\SDK\\C\\win64/32\\Debug;

2, $CUDA_INSTALL_PATH_ROOT\\SDK\\C\\win64/32\\EmuDebug;

3, $CUDA_INSTALL_PATH_ROOT\\SDK \\C\\win64/32\\EmuRelease;

4. $CUDA_INSTALL_PATH_ROOT\\SDK\\C\\win64/32\\Release

Finally, add CUDA_DLL to your PATH variable.

If your system is 64bit, you will encounter "Err Source:Create Custom Project" when creating a new project in VS, but you can't create a successful project. At this time, as long as it is in the system Control Panel -> Programs -> Programs and Features -> After finding visual studio2008, select Delete\\Change, enter the maintenance mode of vs, check the x64 compiler under Visual C++, and click Update. After the update is complete, restart VS and you can create a new project.

Copyright © Windows knowledge All Rights Reserved