Unexpected error calling cuDNN: CUDNN_STATUS_BAD_PARAM.

Illustration
treshaamhed - 2021-04-12T10:31:13+00:00
Question: Unexpected error calling cuDNN: CUDNN_STATUS_BAD_PARAM.

This error stops training when the 'ExecutionEnvironment' is 'parallel', 'multi-gpu', or 'gpu'. Training is running uninterrupted when set to 'cpu'. I'm running code for the first time on Ubuntu 20.04.2 LTS system with Intel i9 12 core cpu and 2x 3070 gpu's. It indicates only 12 workers and seems to not recognize the gpus.

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

After some investigation (see thread below), this problem seems to be limited to RTX 3080 and 3070 and Linux. It can be worked around by disabling tensor cores. Restart MATLAB and run
 
 
 
setenv NVIDIA_TF32_OVERRIDE 0
before you do anything else. Further investigations are under way to look for a solution that doesn't require this workaround, which will reduce performance.
Original answer:
Are you running MATLAB release R2021a? The 3070 is not supported on earlier releases.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!