Cuda + vs2010 Installation

Source: Internet
Author: User

I have read a lot of online tutorials and found out how to install cuda4.0 in a few days.
Thanks again for the various tutorials provided by our predecessors, and now I have provided my installation methods for reference by new users who are still exploring.

My environment: win7 64 flagship, gtx580 + ati5450, using dual graphics card for standalone debugging, Using ATI card to prevent unclear programs running Cuda on that card.

To install: Cuda 4.0 64-bit + vs2010 flagship

Basic installation:

1. Display Card Driver. ATI is equipped with a public drive. The display is connected to this card, and gtx580 is not connected to the display.
The N-card driver is installed with version 270.81, which is the required version of cuda4.0. It is best to install the driver of the specified version to avoid errors during the first installation.
 
2. Install vs2010 and vs2010sp1 slowly and wait patiently.

3. vassistx can be installed later.

4. Cuda Tool Kit 4.0 and Cuda tools 4.0 are installed in sequence and compared.

5. The installation of Cuda SDK 4.0 should be explained. We recommend that you do not install it in the default path; otherwise, the file cannot be searched.
I usually specify the path to D: \ cudasdk_40_win64 to install it on the d disk. 40 indicates 4.0 and win64 BITs, which makes it easier to find the SDK.
The path in the text is represented by the string "sdk_path.
 
6. Generate a tool Library:
Now vs can open the Cuda SDK for example, but before that there are two tool libraries, you 'd better compile them.
A. Use vs2010 to open sdk_path \ c \ common \ cutil vs2010.sln
In vs2010, select "generate-> batch generate", select all, and generate the Lib required for all configurations.
Objective: To generate the cutilxx [D]. Lib XX: 32/64 [d] debug mode for each configuration
Location where Lib is stored: sdk_path \ c \ common \ Lib \ (Win32 | x64)

B. In the same method as above, open sdk_path \ share \ shrutils_vs2010.sln and select "batch generate"
Objective: To generate the shrutilxx. Lib XX: 32/64 [d] debug mode required for each configuration
Location where Lib is stored: sdk_path \ share \ Lib \ (Win32 | x64)
Note: during project compilation, two. cpp files cannot be found and can be directly removed from the project. Because the. h file with the same name already has complete code.

7. test example: Open SDK in vs2010: devicequery. Various matrixmul configurations can be compiled and executed successfully. The basic Cuda configuration is complete.


8. Open your own Cuda project:
The configuration of the Cuda project is troublesome. It is best to modify it based on the original example project. In the Cuda SDK example, sdk_path C \ SRC \ template is used
You can copy the project under the src directory and change it to the project name you need. Must be placed in the src directory, because
The include and Lib directories in the project use relative paths. If it is not placed in the src directory, the header file cannot be opened during compilation. Therefore, it is best to use the Cuda SDK
Do not use the default installation path. Otherwise, it is difficult to find the src directory.

Now the basic configuration of cuda4.0 is complete. The next step is to highlight the syntax and configure the vassistx function. Please refer to the next section.

---

Reprinted

Cuda + vs2010 Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.