Can't open CUDA 3.1 SDK example in Visual C++ 2010 Express

I’m new to CUDA programming and to Visual C++ (though I am an experienced programmer).
I just installed Visual C++ 2010 express, the CUDA drivers (v3.1), CUDA toolkit and CUSA SDK.

I tried to open one of the example projects. VC++ needed to convert the VC++ 2008 projecyt to VC++2010, but the process failed with two errors:

Failed to upgraded platform ‘x64’. Please make sure you have it installed under '%vtargetspath%\platforms\x64
Failed to upgrade ‘Debug|x64’. Please make sure you have the corresponding platform installed under ‘%vtargetspath%\platform\x64’

Anyone got any idea what is wrong and how I fix it?



If VS2010 Express is anything like 2008 Express, there’s no 64-bit compiler included, ie. you cannot compile to x64 architectures.

The project contains a build configuration for a 64-bit platform which is not supported by Express - you’d need a full, non-free version for that. You could try to remove the x64 platform from the VS 2008 project, leave only Win32 (x86), and then import again, see if helps.

How do I remove the x64 configuration if I can’t open the project?


Oh right, you don’t have VS2008 either.

You should be able to modify the .sln and .vcproj files. I’ve never done this, just guessing here, but I can see this in one of my .sln files:

GlobalSection(SolutionConfigurationPlatforms) = preSolution

		Debug|Win32 = Debug|Win32

		Debug|x64 = Debug|x64

		EmuDebug|Win32 = EmuDebug|Win32

		EmuDebug|x64 = EmuDebug|x64

		EmuRelease|Win32 = EmuRelease|Win32

		EmuRelease|x64 = EmuRelease|x64

		Release|Win32 = Release|Win32

		Release|x64 = Release|x64

Try removing all linies with x64.

Then in a .vcproj file I see:




I’d try to remove this as well. This project might use CUDA build rules which may be in the 64 bit version. If you see this:




you might be in trouble. I have no idea how to fix that. Maybe try looking up this file and change its internals so that there are no x64 references?

I can’t guarantee this will work. Make backups of all modified files, this is pretty hacky.

Actually, I just downloaded and installed VC++ 2008 express. Now I can open the example projects with no problems.