The following is the configuration of vs2005, and vs2003 and vs2008 are similar.
1. Install the Visual Studio 2005 environment.
2. Install the Development Assistant visual assist X.
3. Download Cuda software from the http://www.nvidia.cn/object/cuda_get_cn.html and install it in order.
The following is the configuration of vs2005, and vs2003 and vs2008 are similar.
1. Install the Visual Studio 2005 environment.
2. Install the Development Assistant visual assist X.
3. Download Cuda software from the http://www.nvidia.cn/object/cuda_get_cn.html and install it in order.
Cuda driver --> Cuda toolkit --> Cuda SDK
4. syntax highlighting:
Set the usertype in NVIDIA Cuda SDK/doc/syntax_highlighting/visual_studio_8. copy the DAT file to the Microsoft Visual Studio 8/common7/ide directory (if it already exists, append it to the end of the original directory ).
5. Set the vs2005 environment:
Go to tools | options | projects and solutions | VC ++ directories to add:
Include files: D:/programming/Cuda/TOOLKIT/include and D:/programming/Cuda/SDK/common/INC
Library files: D:/programming/Cuda/TOOLKIT/lib and D:/programming/Cuda/SDK/common/lib
Source files: D:/programming/Cuda/SDK/common/src
Go to VC ++ Project Settings: C/C ++ file extensions: Add *. cu. In text editor-File Extension: Add Cu to Microsoft Vc ++ editor.
6. Visual assist x settings:
Close all open Visual Studio, and then go to the Registry Editor: HKEY_CURRENT_USER/software/whole tomato/vanet8 to find the extsource item on the right and add its value. cu ;. cuh; Then close it. Open vs2005 again.
7. Add Cuda to the common directory of the Cuda SDK installation directory in the Rules file search path in tools | options | projects and solutions | VC ++ project setting. path of the rules file.
8. Create a project. Right-click the project name and choose Custom Build rules... -> Select the newly added rule file.
9. Add in the project. cu file, right-click the Cu file and choose Properties> Configuration Properties> General> tool from the drop-down list. Select the name of the build rule selected in the previous step, for example, "Cuda build rule v2.1.1"-> OK.