a_grid = linspace(0,130,1000)';
z_grid = linspace(0,10,40)';
vs_a_grid = coder.typeof(a_grid,[4001,1],1) ;
cfg = coder.gpuConfig('mex');
cfg.GenerateReport = true;
codegen -config cfg fun_VFI_cuda2 -args {zeros(2,1), vs_a_grid, z_grid, pi_z, Params, vfoptions} -o fun_VFI_cuda2_mex
------------------------------------------------------------------------
[1/10] cl /c /Zc:__cplusplus /Zp8 /GR /W3 /EHs /nologo /MD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /DMATLAB_MEX_FILE /O2 /Oy- /DNDEBUG /fp:strict /utf-8 /I "." /I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" /I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" /I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" /I ".\interface" /I "C:\Program Files\MATLAB\R2024b\extern\include" /I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H interface\_coder_fun_VFI_cuda2_info.cpp /Fobuild\win64\_coder_fun_VFI_cuda2_info.obj
_coder_fun_VFI_cuda2_info.cpp
[2/10] nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" rt_nonfinite.cu -o build\win64\rt_nonfinite.obj
FAILED: build/win64/rt_nonfinite.obj
nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" rt_nonfinite.cu -o build\win64\rt_nonfinite.obj
C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\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.
[3/10] nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" interface\_coder_fun_VFI_cuda2_api.cu -o build\win64\_coder_fun_VFI_cuda2_api.obj
FAILED: build/win64/_coder_fun_VFI_cuda2_api.obj
nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" interface\_coder_fun_VFI_cuda2_api.cu -o build\win64\_coder_fun_VFI_cuda2_api.obj
C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\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.
_coder_fun_VFI_cuda2_api.cu
[4/10] nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" fun_VFI_cuda2_initialize.cu -o build\win64\fun_VFI_cuda2_initialize.obj
FAILED: build/win64/fun_VFI_cuda2_initialize.obj
nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" fun_VFI_cuda2_initialize.cu -o build\win64\fun_VFI_cuda2_initialize.obj
C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\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.
fun_VFI_cuda2_initialize.cu
[5/10] nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" fun_VFI_cuda2.cu -o build\win64\fun_VFI_cuda2.obj
FAILED: build/win64/fun_VFI_cuda2.obj
nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" fun_VFI_cuda2.cu -o build\win64\fun_VFI_cuda2.obj
C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\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.
[6/10] nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" fun_VFI_cuda2_terminate.cu -o build\win64\fun_VFI_cuda2_terminate.obj
FAILED: build/win64/fun_VFI_cuda2_terminate.obj
nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" fun_VFI_cuda2_terminate.cu -o build\win64\fun_VFI_cuda2_terminate.obj
C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\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.
fun_VFI_cuda2_terminate.cu
[7/10] nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" interface\_coder_fun_VFI_cuda2_mex.cu -o build\win64\_coder_fun_VFI_cuda2_mex.obj
FAILED: build/win64/_coder_fun_VFI_cuda2_mex.obj
nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" interface\_coder_fun_VFI_cuda2_mex.cu -o build\win64\_coder_fun_VFI_cuda2_mex.obj
C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\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.
_coder_fun_VFI_cuda2_mex.cu
[8/10] nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" cpp_mexapi_version.cpp -o build\win64\cpp_mexapi_version.obj
[9/10] nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" fun_VFI_cuda2_data.cu -o build\win64\fun_VFI_cuda2_data.obj
FAILED: build/win64/fun_VFI_cuda2_data.obj
nvcc -c -rdc=true -Wno-deprecated-gpu-targets -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--display_error_number --diag_suppress=2381 --diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE --no-exceptions -Xcompiler "/EHa" -noprof -ldir "C:\Program Files\MATLAB\R2024b/bin/win64" -Xcompiler "/utf-8" -I "." -I "C:\Users\aledi\Dropbox\1 - RESEARCH PROJECTS\19_MatlabExecutablePaper\SHARED\Code BueraShin_gpuarray" -I "C:\Program Files\MATLAB\R2024b\toolbox\gpucoder\src\gpucoderrt\export\include\gpucoderrt" -I "C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\include" -I ".\interface" -I "C:\Program Files\MATLAB\R2024b\extern\include" -I "." -DMW_CUDA_ARCH=900 -DMW_GPU_MEMORY_MANAGER -DMODEL=fun_VFI_cuda2_mex -DMW_NEEDS_VERSION_H -arch sm_90 -I "C:\Program Files\MATLAB\R2024b/simulink/include" -I "C:\Program Files\MATLAB\R2024b/toolbox/shared/simtargets" fun_VFI_cuda2_data.cu -o build\win64\fun_VFI_cuda2_data.obj
C:\Program Files\MATLAB\R2024b\sys\cuda\win64\cuda\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.
ninja: build stopped: subcommand failed.
------------------------------------------------------------------------
Build error: C++ compiler produced errors. See the Build Log for further details.
Code generation failed: View Error Report
Error in test_codegen (line 20)
codegen -config cfg fun_VFI_cuda2 -args {zeros(2,1), vs_a_grid, z_grid, pi_z, Params, vfoptions} -o fun_VFI_cuda2_mex