How to set up CUDA and cuDNN to resolve "Compatible GPU" errors when using "coder.checkGpuInstall" in MATLAB R2023a?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with GPU Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!