CUDA 7.5 and Visual Studio 2015

Sorry, I won’t tell you the solution. Instead, I will show you why you should not expect for the solution of CUDA 7.5 and Visual Studio 2015 integration problem. 😀

If you try to compile a simple kernel code with nvcc and bind it with the VS2015 C++ compiler like this:

> nvcc .\kernel.cu -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\"

then you will get this error:

nvcc fatal : nvcc cannot find a supported version of Microsoft Visual Studio. Only the versions 2010, 2012, and 2013 are supported

So, it’s not about the CUDA integration files (CUDA.props). It’s a fundamental issue, the CUDA compiler (nvcc) itself does not support the VS2015 C++ Compiler. Now, we should pray for NVIDIA to release a new version of CUDA that solves this as soon as possible. 😀

If you really need to work in VS2015 for CUDA 7.5, someone shared his experience getting workaround with the help of VS2013 C++ compiler here.

Leave a Reply

Your email address will not be published. Required fields are marked *