Using CUDA with Visual Studio 2017

后端 未结 8 1673
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 21:53

I\'m trying to install CUDA, but I get a message saying \"No supported version of visual studio was found\". I think that this is because I am using Visual Studio 2017 (Comm

相关标签:
8条回答
  • 2020-11-28 22:49

    At the moment, Microsoft still seems to be making VS2015 Update 2 community edition available. You have to join the "dev essentials" program, but it seems to be free.

    I was able to download the installer from here recently.

    Update: CUDA 9 RC was made available yesterday at developer.nvidia.com to registered developers, and it has support for VS 2017.

    0 讨论(0)
  • 2020-11-28 22:56

    I ran into the same issue using CUDA 9.1 and VS2017 Enterprise.

    After changing the VC++ compiler to v140 (instead of 141) everything runs fine.

    Already had flags

    #if _MSC_VER < 1600 || _MSC_VER > 1911
    

    But it wouldn't stop showing the error.

    No idea why, but trying to run it on VS2015 lead to errors about v141 not being installed... so because of some twisted logic I tried to not use v141 where it was installed... and everything worked!!

    Leaving this here as it may help someone else in the same situation. (although I really don't understand the why, how, when, who or what of the solution.

    0 讨论(0)
提交回复
热议问题