Using CUDA with Visual Studio 2017

后端 未结 8 1701
爱一瞬间的悲伤
爱一瞬间的悲伤 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: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.

提交回复
热议问题