OpenCV error: no CUDA-capable device is detected in function 'ManagedPtr'

Hi!

My environment:

  • Jetson Nano
  • Jetpack 4.4
  • CUDA 10.2.89
  • cuDNN 8.0.0.180
  • OpenCV 4.5.0-dev compiled with CUDA
  • Python 3.6.9

I’m trying to use OpenCV 4.5.0-dev with CUDA on Python. But I get this error:

cv2.error: OpenCV(4.5.0-dev) /home/mmusic/src/opencv/modules/dnn/src/cuda4dnn/csl/memory.hpp:54: error: (-217:Gpu API call) no CUDA-capable device is detected in function 'ManagedPtr'

I have another Jetson Nano with Jetpack 4.4 DP and same OpenCV 4.5.0-dev with CUDA. But on this Jetson I don’t get this error. What am I doing wrong?

hi mmv047:
for Jetson ,all the compatible SDK should be installed with Jectpack. for JP4.4 DP and JP4.4 opencv version is 4.4.1, for 4.5.0-dev is too new for these JP version. install failed or success is unpredictable