Connect the book to Cuda windows Development
Http://blog.csdn.net/OpenHero/archive/2008/04/10/2278164.aspx
It has been written to create a simple cdua program, but there are still many parameters to be set above, which increases the difficulty for beginners. Here the author developed a Cuda wizard for vs2005 "Cuda vs2005 wizard" http://blog.csdn.net/OpenHero/archive/2008/04/18/2305856.aspx so that it is very convenient in vs2005 environment for Cuda development. The following is a Quick Start Process: 1. After installing Cuda vs2005 wizard, you can see a cudawin32app project wizard in the vs project. Click this to create a simple Cuda project, which has a simple example for Cuda development. 2. I created a demo for testing thread here, so the generated Cu file name is threaddemo1. We can see that some simple hello Cuda programs have been automatically generated by the vs wizard. 3. Let's take a look at the environment configuration of the project. We can see that the debug release emudebug emurelease is already in the system settings, and the wizard has automatically generated the configuration of each stage of the project. 4. view and configure the project environment variables, right-click the project, and select "properties" or "properties". A Cuda option is added to the project environment configuration, you can configure the Cuda environment here. 5. Compile the program 6. Run the output Cuda initialized. Hello Cuda. Time! 7. for debugging, You need to associate the Cu file to the VC project. Otherwise, the breakpoint cannot be tracked during debugging. Therefore, you must add * to the VC ++ project environment of the system *. cu file, VS can associate your program with the source file for debugging.
If no associated Cu is found, the source file cannot be found during debugging. 8. simple and fast development. My font shows high brightness here. Some may ask how to make the Cu file display high brightness. You can check my other translation, syntax highlighting when editing your. cu files in Visual Studio 9. in the next section, I want to give a simple and practical explanation of the Cuda thread model ...... Hoho >_<! PS: Your message is my greatest encouragement. Open Heart bravely fly! 10. Thanks to the tips of wuhy, add visual assist to support *. Cu file so that you can easily edit the Cu by installing visual assist in vs2005 :)