How to set up CUDA and cuDNN to resolve "Compatible GPU" errors when using "coder.checkGpuInstall" in MATLAB R2023a?
이전 댓글 표시
I am trying to generate code with GPU Coder R2023a. I am using an NVIDIA RTX 3080TI graphics card with NVIDIA Driver Version v520.56.06, CUDA Version v11.8, and cuDNN Version v8.7.
I performed the following setup steps:
1) Set up the environmental variables:
>> setenv("NVIDIA_CUDNN","/usr/local/cuda");
>> setenv("LD_LIBRARY_PATH","/usr/local/cuda");
2) Execute the code:
>> envCfg = coder.gpuEnvConfig('host');
>> envCfg.DeepLibTarget = 'cudnn';
>> envCfg.DeepCodegen = 1;
>> envCfg.Quiet = 1;
>> coder.checkGpuInstall(envCfg);
The following error is returned by "coder.checkGpuInstall":
"Compatible GPU: (There is a problem with the graphics drive or with this GPU. Be sure that you have a supported GPU and latest driver. Code execution will not be available.)"
How can I fix this issue?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 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!