nvcc cannot find a supported version of Visual studio

Sep 28, 2013 at 4:02 AM
I'm getting this error:
Cudafy.CudafyCompileException: Compilation error: nvcc : fatal error : nvcc cannot find a supported version of Microsoft Visual Studio. Only the versions 2008, 2010, and 2012 are supported
at this line:
CudafyModule km = CudafyTranslator.Cudafy();
I have Visual Studio 2010 express installed for C# and C++.

This used to work - any idea how I can help nvcc "find" it?
Sep 29, 2013 at 9:09 AM
Edited Sep 29, 2013 at 9:09 AM
this helped:

this answer:
Include this line
compiler-bindir = C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin
Oct 2, 2013 at 2:36 PM
this do not solve the problem! Any other ideas?
Oct 2, 2013 at 11:23 PM
Edited Oct 2, 2013 at 11:24 PM
yes, specify it directly using the CompileProperties object:
CompileProperties cp = new CompileProperties();
cp.CompilerPath = @"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc.exe";
cp.WorkingDirectory = Directory.GetCurrentDirectory();
cp.IncludeDirectoryPath = @"F:\Apps\Microsoft Visual Studio 10.0\VC\include";
km = CudafyTranslator.Cudafy(cp, typeof(theType));