I ran into the same issue using CUDA 9.1 and VS2017 Enterprise.
After changing the VC ++ compiler to v140 (instead of 141) everything works fine.
There were already flags
#if _MSC_VER < 1600 || _MSC_VER > 1911
But this will not stop showing the error.
I donβt know why, but trying to run it on VS2015 leads to errors that v141 is not installed ... therefore, due to some kind of perverse logic, I tried not to use v141, where it was installed ... and it worked! !
Leaving this here as it might help someone else in the same situation. (although I really do not understand why, how, when, who or what of this decision.
Pabtorre
source share