How to add an NVCC flag
I am attempting to compile a program using CUDA, and am getting the following error in response
C:Program FilesMATLABR2024asyscudawin64cudaincludecrt/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 looked and it seems the problem is caused by a small glitch in a recent update of visual studio that shouldnt have any effect on the compiler. How do I add the flag to override the version check? My current code is as follows
mex -setup:’C:Program FilesMATLABR2024abinwin64mexoptsmsvcpp2022.xml’ C++
mexGPUallI am attempting to compile a program using CUDA, and am getting the following error in response
C:Program FilesMATLABR2024asyscudawin64cudaincludecrt/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 looked and it seems the problem is caused by a small glitch in a recent update of visual studio that shouldnt have any effect on the compiler. How do I add the flag to override the version check? My current code is as follows
mex -setup:’C:Program FilesMATLABR2024abinwin64mexoptsmsvcpp2022.xml’ C++
mexGPUall I am attempting to compile a program using CUDA, and am getting the following error in response
C:Program FilesMATLABR2024asyscudawin64cudaincludecrt/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 looked and it seems the problem is caused by a small glitch in a recent update of visual studio that shouldnt have any effect on the compiler. How do I add the flag to override the version check? My current code is as follows
mex -setup:’C:Program FilesMATLABR2024abinwin64mexoptsmsvcpp2022.xml’ C++
mexGPUall mex, compiler MATLAB Answers — New Questions