CUDA version compatibility with visual studio 2017

Hi,

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.

Thanks,
Ronak

Check this post and the link in there:
https://devtalk.nvidia.com/default/topic/1036401/optix/optix-installation-windows-cuda-9-2/post/5265364/#5265364

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.