I've recently updated my VS 2017 and now I cannot even build a default CUDA project (the one with the vector addition).
I suspect that this is due to the following error:
Severity Code Description Project File Line Suppression State
Error C1189 #error: -- unsupported Microsoft Visual Studio version!
Only the versions 2012, 2013, 2015 and 2017 are supported! ver2
c:\program files\nvidia gpu computing
toolkit\cuda\v9.0\include\crt\host_config.h 133
The other errors are irrelevant and will disappear once I fix this one. Note, that I am able to build and run simpleCUFFT from CUDA samples.
Before the update I was able to build the default CUDA project but I was not able to build the CUDA Sample project. I've updated my VS2017 using VS installer and installed CUDA SDK 10.0.15063.0. Attached is the screenshot with the installed components.
Please let me know if any additional information is required. I am aware of the following topic and since I am using the latest CUDA toolkit, I don't need to make changes in host_config.h.
Thanks, Mikhail
Edit: My VS version (as displayed in VS installer) is 15.5.0 My nvcc version is release 9.0, V9.0.176
Edit2: I've tryied to change host_config.h line 133 to:
#if _MSC_VER < 1600 || _MSC_VER > 1912
This error does not show up anymore, however, a bunch of errors "expression must have a constant value" show up in the file type_trails. I have no clue how to fix it.