Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

CUDA in Visual Studio 2010

📅 2012-May-14 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ cuda, visual studio ⬩ 📚 Archive

 

CUDA 4.0 and later versions work fine with Visual Studio 2010. The only noticeable change from Visual Studio 2008 is that Build Rules are replaced by Build Customizations in Visual Studio 2010.

Adding CUDA capability to any Visual Studio 2010 solution is easy:

  1. Install the latest version of CUDA Toolkit.
  2. Right-click the project name in Solution Explorer and choose Build Customizations.
  3. The Visual C++ Build Customization Files dialog should display the one or more CUDA toolkits you have installed. Choose the one you want to use and click OK.
  4. To change the CUDA compile options, in the project properties look for the section CUDA C/C++.

You should be able to build CUDA source files and run CUDA programs with these changes.

Tried with: CUDA 4.1 and Visual Studio 2010


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧