davisking/dlib

[Bug]: RuntimeError: Error while calling cudaStreamCreateWithFlags(&cstream, cudaStreamNonBlocking) in file ..../dlib/cuda/gpu_data.cpp:231. code: 800, reason: operation not permitted

rd-fhl opened this issue · 5 comments

What Operating System(s) are you seeing this problem on?

Linux (x86-64)

dlib version

19.24.2

Python version

3.8

Compiler

pip 23.2.1

Expected Behavior

No response

Current Behavior

RuntimeError: Error while calling cudaStreamCreateWithFlags(&cstream, cudaStreamNonBlocking) in file /tmp/pip-install-bngevxx6/dlib_192b1240c0634738a0a187ed106e5d89/dlib/cuda/gpu_data.cpp:231. code: 800, reason: operation not permitted

Steps to Reproduce

I use dlib in my python project which on docker , part of the code is as follows, sometimes errors will occur
`
self.face_shape_predictor = dlib.shape_predictor('shape_predictor_68_face_landmarks.dat')

self.face_recognition_model = dlib.face_recognition_model_v1('dlib_face_recognition_resnet_model_v1.dat')

face_landmarks = self.face_shape_predictor(image, face_detection)

self.face_recognition_model.compute_face_descriptor(image, face_landmarks, 0, 0.25)
`

Anything else?

No response

Not sure what the deal is. Probably cuda isn't installed on your system correctly. Hard to say. Try reinstalling cuda and check that stuff like nvidia-smi reports things are in order.

On Fri, Mar 8, 2024 at 3:07 AM rd-fhl @.> wrote: What Operating System(s) are you seeing this problem on? Linux (x86-64) dlib version 19.24.2 Python version 3.8 Compiler pip 23.2.1 Expected Behavior No response Current Behavior RuntimeError: Error while calling cudaStreamCreateWithFlags(&cstream, cudaStreamNonBlocking) in file /tmp/pip-install-bngevxx6/dlib_192b1240c0634738a0a187ed106e5d89/dlib/cuda/gpu_data.cpp:231. code: 800, reason: operation not permitted Steps to Reproduce I use dlib in my python project which on docker , part of the code is as follows, sometimes errors will occur self.face_shape_predictor = dlib.shape_predictor('shape_predictor_68_face_landmarks.dat') self.face_recognition_model = dlib.face_recognition_model_v1('dlib_face_recognition_resnet_model_v1.dat') face_landmarks = self.face_shape_predictor(image, face_detection) self.face_recognition_model.compute_face_descriptor(image, face_landmarks, 0, 0.25) Anything else? No response — Reply to this email directly, view it on GitHub <#2927>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPYFR2ZMGJIIZTFRFJC523YXFWTXAVCNFSM6AAAAABEMMMJYKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3TKNJQGQYDSNI . You are receiving this because you are subscribed to this thread.Message ID: @.>

nvidia-driver515, cuda11.7 has been installed, this is not a problem that will definitely occur, so I don’t know how to eliminate it

Warning: this issue has been inactive for 35 days and will be automatically closed on 2024-04-26 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

Warning: this issue has been inactive for 43 days and will be automatically closed on 2024-04-26 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

Notice: this issue has been closed because it has been inactive for 45 days. You may reopen this issue if it has been closed in error.