Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CUDA 4.2.props and target file is missing (Visual Studio 2010)

I'm trying to get the CUDA 4.2 toolkit to work with Visual Studio 2010 (c++ express edition). I'm running this on Microsoft Windows 64 bit. I have the SDK, the toolkit and Nsight™ Visual Studio Edition 2.2 currently installed, as well as Visual Studio 2010 (c++ express edition). I have CUDA fully installed and working properly in itself, yet when I try to open a source project with Visual Studio 2010, I get this error:

Unable to read the project file "bandwidthTest_vs2010.vcxproj". C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2\ C\src\bandwidthTest\bandwidthTest_vs2010.vcxproj(65,5): The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp \v4.0\BuildCustomization\CUDA 4.2.props" was not found. Confirm that the path in the Import declaration is correct, and that the file exists on disk.

I have tried uninstalling the toolkit and the SDK and reinstalling, and this did not fix the issue. I think if someone could simply give me the files, then it might work. However, I am still worried as to why I am having this issue in the first place. Any insight would be greatly appreciated.


1 Answers

It's probably solved, but for the ones who land here:

if you encounter this, most probably CUDA toolkit did not install properly. Simply copy the files from

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\extras\visual_studio_integration\MSBuildExtensions 

to

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations.
like image 85
Paul Ianas Avatar answered Dec 23 '25 02:12

Paul Ianas