Hi,
i want to work with OpenCV with CUDA support to process images on a Jetson Orin Nano.
For the start i decided to simply use a cannyEdge detector.
To build OpenCV with CUDA support i followed the instructions that worked in this Thread.
So currently i have OpenCV 4.9.0-dev installed with CUDA support enabled (as jtop stats confirm).
Now everytime i call cv::cuda::setDevice(0);
or canny->detect(matImg,edgeImg);
i get the exception
what(): OpenCV(4.9.0-dev) /home/myUser/opencv/modules/core/src/cuda_info.cpp:74: error: (-217:Gpu API call) all CUDA-capable devices are busy or unavailable in function 'setDevice'
or ‘allocate’ in case of the canny call.
I tried reinstalling OpenCV in Version 4.4 and 4.9 as well.
Some more info:
Calling cv::getBuildInformation
returns(only CUDA section)
NVIDIA CUDA: YES (ver 11.4, CUFFT CUBLAS FAST_MATH)
NVIDIA GPU arch: 87
NVIDIA PTX archs: 87
cuDNN: YES (ver 8.6.0)
Calling cv::cuda::printCudaDeviceInfo(0)
returns the stats of the GPU on the board.
Both outputs look fine to me, so if anyone has an idea what is going on there i would be very grateful.