I’m trying to get ANY call to nvcc working on Windows 8. I have installed the drivers 320 drivers.
I have successfully installed Visual Studio 2012 Ultimate, Visual Studio 2010 Shell and Windows SDK 7.1. I have downloaded Nvidia Nsight and believe I have installed it on VS2012.
For VS 2012, I followed the following instructions to Browse code samples | Microsoft Docs and it worked up until compilation, where I get the following build errors:
error C2065: ‘threadIdx’ : undeclared identifier
error C2228: loft of ‘.x’ must have class/struct/union
For VS 2010, Visual C++ does not appear among the list of project types. Apparently this is a known bug, but the Microsoft fix did not work. I downloaded and ran the fix, but no luck: http://www.microsoft.com/en-us/download/details.aspx?id=4422. I can’t see installing Nsight on an IDE that doesn’t recognize VC++ as a compiler.
I suspect that all these errors might be related, but I’ve been kludging around the internet and file system for a fix for more than a week and haven’t had any luck.
If you can just use Visual Studio 2010, rather than muck around with re-configuring a bunch of stuff.
That video series(above) walks you through the whole process. In general I have had very few problems using Visual Studio 2010 Ultimate with the CUDA SDK 5.0, and had extremely good GPU performance.
If you can start from scratch, install Visual Studio 2010 Ultimate first, then the CUDA 5.0 SDK, then follow that video series to the letter.
FWIW, I have the exact same problem as the OP using windows 7 home, and following the link Browse code samples | Microsoft Docs. Using visual studio 2012 express and cuda 5.0
I finally got cuda 5 and studio 2012 express to work on windows 7 , I unloaded both then started from scratch reloading both, made all the changes listed in Browse code samples | Microsoft Docs.
Cuda source/kernels now compile and run OK . although still get the same red squiggly underline errors showing as before on threadIdx.x; and <<< , guess that the next battle, but at least it works.
Apply “CUDA/GPU Computing Registered Developer Program”. You’ll be received approval email within 24 hours. Then you can download some CUDA stuffs.
Apply “Nsight Visual Studio Edition Registered Developer Program”. You’ll be received approval email within 24 hours. Then you can download the latest Nsight VS edition for GPU develop.