【报错】fatal error C1189: #error: – unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019 (inclusive) are supported
! The nvcc flag ‘-allow-unsupported-compiler’ can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin\nvcc.exe’ failed with exit status 2
进入->C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include\crt
修改host_config.h
#if _MSC_VER < 1910 || _MSC_VER >= 1930
->
#if _MSC_VER < 1910 || _MSC_VER >= 2030