#error — unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported! | Line 133 | Line 707 | CUDA Error

If you are getting the following error when running CUDA in Visual Studio 2017:



then all you have to do is go to the menu bar at the top Project -> [your project name] Properties -> General -> Platform Toolset -> Change to Visual Studio 2015 (v140) -> Hit Apply -> Hit OK.

Now, you will be able to build and run your CUDA code.



Leave a Reply

Your email address will not be published. Required fields are marked *