Failed to create a working Visual Studio 2010 project with CUDA 4.0

Hi,

I couldn’t create a working Visual Studio 2010 project with CUDA 4.0. What I did is as follows:

  1. Create an empty project.
  2. Select menu item “Project->Build Customization”.
  3. Check “CUDA 4.0…”

Now when I close this empty project and reopen it, there is a warning message popup “One or more projects in the solution were not loaded correctly. Please see the Output Window for details.”

The Output Window says “error : The result “” of evaluating the value “$(CudaBuildTasksPath)” of the “AssemblyFile” attribute in element is not valid. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 4.0.targets.”

I also tried to add some source files into the project but there is another error message “Failed to add files.”

Please help me fix this problem. Thank you.

Hello,
i am not familliar with vs2010, only with 2008,
there is a good guide how to make a minimal console project:
http://digitalerr0r.wordpress.com/2010/12/19/parallel-computing-using-the-gpu-tutorial-3-integrate-cuda-3-2-into-visual-studio-2008/

maybe that helps

Gaszton