Hi, I tried to run my python application on Jetson AGX Xavier.
The python application runs in a docker container and uses opencv. The docker image is based on the l4t_base image.
I compiled opencv with cuda enabled in the container and if I run print(cv2.getBuildInformation())
NVIDIA CUDA: YES (ver 10.2, CUFFT CUBLAS FAST_MATH)
NVIDIA GPU arch: 72
NVIDIA PTX archs:
cuDNN: YES (ver 8.0)
But when I run my python code with
signal: aborted (core dumped)
terminate called after throwing an instance of ‘cv::Exception’
what(): OpenCV(4.4.0) /tmp/build_opencv/opencv/modules/core/src/cuda_info.cpp:84: error: (-217:Gpu API call) no CUDA-capable device is detected in function ‘getDevice’
I also ran the following in both the container and the host machine.
count = cv2.cuda.getCudaEnabledDeviceCount()
On the host machine, it returns 1 but in the container, it returns 0.
How should I solve this?