dlib icon indicating copy to clipboard operation
dlib copied to clipboard

[Bug]: dlib.DLIB_USE_CUDA: false

Open huan415 opened this issue 1 year ago • 3 comments
trafficstars

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

Linux (x86-64)

dlib version

19.14.0

Python version

3.8.10

Compiler

MSVC 19

Expected Behavior

import dlib dlib.DLIB_USE_CUDA returns TRUE

Current Behavior

import dlib dlib.DLIB_USE_CUDA returns FALSE

Steps to Reproduce

Dockerfile:

FROM nvidia/cuda:11.4.0-cudnn8-devel-ubuntu20.04 ..... RUN cd dlib-19.14.0 &&
mkdir build &&
cd build &&
cmake .. -DDLIB_USE_CUDA=1 -DUSE_AVX_INSTRUCTIONS=1 &&
cmake --build . RUN cd dlib-19.14.0 &&
python3 setup.py install --yes USE_AVX_INSTRUCTIONS --yes DLIB_USE_CUDA

run

docker run --gpus all ...

env

nivdia-smi、nvcc -V is success. but dlib.DLIB_USE_CUDA returns false

Anything else?

No response

huan415 avatar Jul 22 '24 09:07 huan415

CUDA was found but your compiler failed to compile a simple CUDA program so dlib isn't going to use CUDA.

huan415 avatar Jul 22 '24 14:07 huan415

I guess the most intriguing part is how you can use MSVC 19 on Linux.

arrufat avatar Jul 22 '24 23:07 arrufat

MSVC

I guess the most intriguing part is how you can use MSVC 19 on Linux.

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)

huan415 avatar Jul 23 '24 01:07 huan415

Warning: this issue has been inactive for 35 days and will be automatically closed on 2024-09-06 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.

dlib-issue-bot avatar Aug 27 '24 08:08 dlib-issue-bot

Warning: this issue has been inactive for 43 days and will be automatically closed on 2024-09-06 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.

dlib-issue-bot avatar Sep 04 '24 08:09 dlib-issue-bot

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.

dlib-issue-bot avatar Sep 06 '24 08:09 dlib-issue-bot