When trying to compile CUDA samples the following error occurs:
c:\program files\nvidia gpu computing toolkit\cuda\v9.2\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!
Hey guys… I just tried to install Cuda 9.2, but I’m running VS2017 (15.7.1) The install fails so I came here.
Is there no way to even get 9.2 to install if I have VS 2017 installed? Is the only option to uninstall Visual Studio first?
Cuda 9.2 installed without complaint for me for VS2017 15.7.1 even though it’s not officially supported etc. Maybe since the stealth release of 9.2 they edited a later installer to guard against that now?
Although as stated to be able to compile and run the Cuda 9.2 samples on VS2017 15.7.1 I had to hack the _MSC_VER check in the Cuda header files - no guarantees on how safe that is though of course. I have noticed rebuilds don’t quite work right all the time btw but I seem to remember having that problem before with earlier versions.
Today there is a VS2017 15.7.2 update too! As much as I sympathise with nVidia’s situation regards Microsoft’s VS2017 updates I think communication wise nVidia should have handled this much better.
Microsoft’s frequent stream of random VS2017 updates while well intentioned is a developer disaster, as opposed to the old system of more regularly spaced and forewarned updates and service packs to allow dependent partners and developers to keep reasonable pace. But then Microsoft is the company that has instigated forced software updates on end users in their latest OS which should be illegal and is actually a security risk. So I worry this is going to get worst as Microsoft continues to not understand the hell of software ecosystem dependencies despite the fact they should have the experience by now to know better :-(
Did you have to do anything special on your computer to get 9.2 to install alongside VS2017 or did you just luck out? During the install I get past the system check, license. I’ve tried both Express and Custom installs. The reason I’m hoping for Custom Installs is because I want to pick where the software gets installed. After this, the installer starts churning away and I get a fail. The when looking down the list it says that it failed on the Visual Studio Integration step.
Just curious to know how you were able to get it to install anyway.
In this case, since there is no compatibility with the current version of VS 2017 and CUDA 9.2 would it just be better to uninstall and reinstall an older version of VS? I’m just starting with CUDA today and trying to get things to work has been very frustrating.
I installed it with VS2017 15.7.1 on a Windows 7 PC - not sure why the install worked for me but not you. It could well be they updated the installer to not allow that after I installed as it’s not officially a supported version.
I installed using the following named files:
For now the official line I guess will be to roll back to a previous VS2017 version but then they haven’t made it clear which exact VS2017 15.6.x version to my knowledge is ‘safe’. Hence my question of:
“Microsoft Visual Studio 2017 (RTW and Update 6) => So I assume that means 15.6.7?”
Our ubuntu linux is currently at 14.04 and the Cuda’s from 9.x onward seem to have dropped support for that version. I might try it in a 16.x container. Nvidia has some cuda-enabled docker images but that might end up just compounding the pain ;)