Cudnn error while running custom Yolov5 model on Xavier AGX using Pytorch+GPU


I have set the Nvidia Jetson Xavier agx device with default cuda 11.4, cudnn 8.4, tensorrt 8.4 and flowed the instructions in the below page to make pytorch run on GPU
and also verified torch.cuda.is_available(), it says TRUE

when I try to run my custom Yolov5l model, it starts to run the model on GPU but not successfully running. I am getting following error

RuntimeError: Unable to find a valid cuDNN algorithm to run convolution


Which PyTorch package do you install?
It looks like you are using JetPack 5.0.x.

So please find the compatible package below:


Yes I have installed the Jetpack 5.0.2 compatible PyTorch package. But still the same issue


Not sure if PyTorch cannot find a suitable algorithm since Jetson’s memory is much limited.
Could you try to reduce the batchsize to see if it helps?

If the error still occurs, please share the complete log with us.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.