Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when using Opencv with CUDA #3

Open
isra60 opened this issue Mar 17, 2021 · 4 comments
Open

Problem when using Opencv with CUDA #3

isra60 opened this issue Mar 17, 2021 · 4 comments

Comments

@isra60
Copy link

isra60 commented Mar 17, 2021

I started my docker with

docker run julianassmann/opencv-cuda:cuda-10.2-opencv-4.2

Then have the following error message when I try to execute a program while using GpuMats
I could built perfectly my code but then..

terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.2.0) /opt/opencv-4.2.0/modules/core/src/cuda/gpu_mat.cu:116: error: (-217:Gpu API call) CUDA driver version is insufficient for CUDA runtime version in function 'allocate'

@pingvinton
Copy link

Hello, I have another error after build docker container:
image
I have used this Dockerfile https://github.com/JulianAssmann/opencv-cuda-docker/blob/master/ubuntu-20.04/opencv-4.5/cuda-11.1/Dockerfile

I used GeForce RTX 3090 GPU card

@Saafke
Copy link

Saafke commented Jan 26, 2022

I had the same error. My problem was that I did not install nvidia-docker. You can install by following the instructions here:

https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html

@JulianAssmann
Copy link
Owner

@isra60 @pingvinton Did the solution proposed by @Saafke resolve the issue?

@Slownite
Copy link

Hi
I have the same error as @isra60 and the solution proposed by @Saafke didn't work. Does anyone has any idea how to fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants