Why does dlquantizer not recognize my GPU?

4 views (last 30 days)
John Engel
John Engel on 21 Jan 2022
Commented: John Engel on 27 Jan 2022
When I run the calibrate method of dlquantizer I get the following error:
Error using dlquantizer/calibrate
No GPU available. dlquantizer requires a GPU machine to quantize a network object.
However, my computer has an NVIDIA RTX3090 GPU that MATLAB recognizes when I run gpuDeviceTable:
Index Name ComputeCapability DeviceAvailable DeviceSelected
1 "NVIDIA GeForce RTX 3090" "8.6" true true
The MATLAB GPU Support Table indicates that this GPU should be compatible, so I do not understand what the problem is. Since the dlquantizer code is P-code, I cannot debug the issue. Does anyone know what might be going on?
  1 Comment
yanqi liu
yanqi liu on 22 Jan 2022
if use Windows,may be install cuda environment

Sign in to comment.

Answers (1)

Pratyush Roy
Pratyush Roy on 24 Jan 2022
Edited: Pratyush Roy on 24 Jan 2022
Hi John,
As per my understanding, you are unable to run the calibrate method for the dlquantizer object, although you have a GPU that is recognized by MATLAB.
There are certain prerequisites that we need to meet before we can quantize and deploy deep learning networks, e,g,, setting up the prerequisite products, ensuring that the compiler is compatible with our workflow amd the supported networks/classes/layers that we can quantize and deploy.
The documentation link here might be helpful to know about some of these pre-requisites.
Hope this helps!
  1 Comment
John Engel
John Engel on 27 Jan 2022
Thank you for the quick response. It appears that my system does not have cuDNN installed, so not satisfying the prerequisites might be the problem. Unfortunately, I have to wait for our IT department to install that. I do find it odd that the error message refers to a missing GPU, rather than a missing software component.

Sign in to comment.


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!

Translated by