I received a nasty surprise after updating to the latest version of vs2022 today. I don’t use cmake … I compile my ptx files by directly calling nvcc.exe in my code. This has worked perfectly until today when I receive this message when trying to compile my .cu code.
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3\include\crt/host_config.h(164): fatal error C1189: #error: – unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (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.
I tried the ‘-allow-unsupported-compiler’ flag but then got this error message
nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
I tried updating to Cuda 12.5 from 12.3 and still get the errors
I tried compiling the ‘optixHello’ sample from the OptiX-Samples and get the same error.
|Error|C1189|#error: – unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (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.|optixHello|C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2\include\crt\host_config.h|157|||
OptiX 8.0
Geforce RTX 3090 driver 555…85
Windows 11 Pro