CUDA version compatibility with visual studio 2017


I am using Visual studio 2017 community and CUDA 9.2 version and trying to build sample CUDA’s sample application but somehow I am unable to build the same and getting error like “-- unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported!”.

Can you please suggest me which CUDA version should I use with Visual Studio 2017 community version?

Please provide some input.

Any help will be highly appreciated.


Check this post and the link in there:

It might be that your installed MSVS 2017 version is actually too new for CUDA 9.2.
I would recommend using CUDA 10.x with MSVS 2017 instead.