i’ve had to struggle through this process. i believe i’ve got it.
firstly, make sure you have the developer driver. (though i develop on my laptop, too, which doesn’t have an nvidia card actually, so i just dont’ fully compile / run it there.)
the main problem is that the sdk doesn’t include a solution for 2010, and when you try to convert for a 2008 / 2005 file, it errors out on NvRuntimeApi or something. the file really isn’t there. so i decided to try editing it out of the .vcproj or whatever file. it turns out it’s just xml and you can just remove it. so i did. and then it was able to convert successfully.
i think there was still stuff i had to mess around with. most important step was right-clicking on the project in solution explorer and selecting build customizations…, and checking cuda 3.2.targets.
also you might have to the compile cutil and shrutil projects first.
eventually i discovered something much simpler, though:
the parrallel nsight program actually comes with its own set of samples that actually work pretty much write off the bat in 2010 (they have 2010 solution files). so download and install it, (you’ll need both the monitor and the host), then on your start menu go to nvidia parallel nsight 1.5->browse cuda samples, then open one of those solution files and it should be able to compile.
then i suppose you can copy the settings from those working ones to new ones. that’s what i intend to do. make sure if you’re using win32 vs. x64, you’re using it all across the board. (the xx32.dll’s, etc.)
if that doesn’t work (and in any case) here’s a blogpost i found to be helpful.