- Please verify that all system requirements have been met and all third-party products are installed (especially the compatible C/C++ compilers and CUDA toolkit and driver) for using GPU Coder. You can find out more about the requirements here https://www.mathworks.com/products/availability.html#GC
- If you have multiple CUDA versions installed on your system, please verify that the 'CUDA_PATH' environment variable points to the CUDA 9 executables. To refer to the list of all required environment variables for GPU Coder, run the following command in MATLAB R2018a:web(fullfile(docroot, 'gpucoder/gs/setting-up-the-toolchain.html'))
Why does checkGpuInstall with codegen option fail with the error 'Wno-deprecated-declarations'?
조회 수: 5 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2018년 12월 14일
편집: MathWorks Support Team
2024년 1월 12일
When I run the gpu coder check as documented on the online tutorials I get this error:
>> coder.checkGpuInstall('gpu','codegen','quiet');
------------------------------------------------------------------------
ERROR: nvcc -c -rdc=true -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE -Wno-deprecated-declarations -arch sm_35 -I "C:\EngTools\MATLAB\R2018a\simulink\include" -I "C:\EngTools\MATLAB\R2018a\toolbox\shared\simtargets" -I "C:\Users\LON~1.CHA\AppData\Local\Temp\TP3679~1\codegen\mex\gpuSimpleTest" -I "C:\Users\LON~1.CHA\AppData\Local\Temp\TP3679~1" -I ".\interface" -I "C:\EngTools\MATLAB\R2018a\extern\include" -I "." "gpuSimpleTest_data.cu"
nvcc fatal : Unknown option 'Wno-deprecated-declarations'
gmake: *** [gpuSimpleTest_data.obj] Error 1
채택된 답변
MathWorks Support Team
2023년 11월 15일
편집: MathWorks Support Team
2024년 1월 12일
This is a known issue related to an incompatible CUDA version. CUDA 9 is the recommended version for R2018a running on Windows systems.
To resolve this error,
Please follow the below link to search for the required information regarding the current release:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with GPU Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!