I’ve recently updated my VS2017 (the current version is 15.5.0 according to the VS installer).
I am using the latest CUDA toolkit Cuda compilation tools, release 9.0, V9.0.176.
I am not able to build even a default project (the one with vector addition), as the following error shows up:
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
I am aware of https://devtalk.nvidia.com/default/topic/1022648/cuda-setup-and-installation/cuda-9-unsupported-visual-studio-version-error/ topic, and in the host_config.h file everything is fine.
I’ve tried to change the line in host_config.h file to the following: #if _MSC_VER < 1600 || _MSC_VER > 1912
As a result, there was no unsupported error, however, the new errors “expression must have a constant value” show up in the file type_trails.
Can someone help? Thanks