CUDA host_config error in Windows 10 installation
See original GitHub issueHi All
Just a quick question here because CUDA/Visual Studio never returned this error in any other cuda related build.
CUDA9, Windows 10, latest GCC, with the new updated installation guidelines, everything seems to be working until I reach the apex/PyTorch Detection part. I get this error:
c:\program files\nvidia gpu computing toolkit\cuda\v9.0\include\crt/host_config.h(133): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported! error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0\\bin\\nvcc.exe' failed with exit status 2
I’ve looked it up elsewhere and it seems like this error has been sorted with CUDA-9, line 131:
#if _MSC_VER < 1600 || _MSC_VER > 1911
What am I missing?
Issue Analytics
- State:
- Created 4 years ago
- Comments:10
Top GitHub Comments
@qalid7 Here is the procedure I took
Steps to make it work.
Note, if you are using cuda 9 and VS 2017 you need to install the VC++ 2017 version 15.4 v14.11 toolset (you can do this from the Visual Studio 2017 installer)
After that, you need to activate the toolset as default. you can do this by using the following command
cd “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build” .\vcvarsall.bat x64 -vcvars_ver=“14.11”
Notice that I’m using the community edition of VS, you may need to adjust the path to match the version you are using
Additionally notice that: #if _MSC_VER < 1600 || _MSC_VER > 1911
_MSC_VER has to be between 1600 and 1911 (inclusive) and as you can see in the table all VS 2015 versions are within the range, but not all VS 2017 versions are
List of MSC_VER https://dev.to/yumetodo/list-of-mscver-and-mscfullver-8nd
@erick84mm by downgrading you mean? I’ve both 2015, 2017 installed. Still getting that above error!