Tuesday, August 19, 2014

Resolving Visual Studio samples fail to load error when upgrading from CUDA v 5.5 to CUDA v 6.0

I recently upgraded my CUDA installation from v 5.5 to 6.0. I uninstalled the old v 5.5 and then installed the v 6.0. To my surprise, as soon as I tried to load the Visual Studio sample project solution files, they failed to load. An error dialog popup saying something along these lines
"Unable to read the project file . The imported project was not found file cannot be found...."
 A close inspection revealed that the CUDA build tools were still referring to the old CUDA v 5.5 sdk build tools. Since I had already uninstalled the previous CUDA version, the system could not find the path.

Solution:
You just have to update the CUDAPropsPath environment variable to point to the new SDK MSBuildExtensions folder. Doing so loads all of the sample projects fine.

Hope this tip will help others as well.

Popular Posts

Copyright (C) 2011 - Movania Muhammad Mobeen. Awesome Inc. template. Powered by Blogger.