This project is read-only.

nvcc cannot find a supported version of Visual studio

Sep 28, 2013 at 5: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 10:09 AM
Edited Sep 29, 2013 at 10:09 AM
this helped:
http://stackoverflow.com/questions/2760374/why-cant-nvcc-find-my-visual-c-installation

this answer:
Include this line
compiler-bindir = C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin
in
C:\CUDA\bin64\nvcc.profile
Oct 2, 2013 at 3:36 PM
this do not solve the problem! Any other ideas?
Oct 3, 2013 at 12:23 AM
Edited Oct 3, 2013 at 12:24 AM
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";
Directory.SetCurrentDirectory(CudafyTranslator.WorkingDirectory);
km = CudafyTranslator.Cudafy(cp, typeof(theType));