"CUDA_ERROR_NO_DEVICE" despite installed GPU #739
Unanswered
siebentausend
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I'm running a Ubuntu 18.04.6 VM on Proxmox and I'm passing a NVIDIA K4000 GPU and an Osprey 845e SDI-Interface to the VM (The Osprey card is the actual reason for running the old Ubuntu Version since the driver support is quite limited).
Running the cuda-build of the Restreamer-Container, I get to pick the "H.264 (NVENC)"-Option, but when I try to connect the stream, I get the error "[h264_nvenc @ 0x55a7014df380] dl_fn->cuda_dl->cuInit(0) failed -> CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected". With libx264 everything works perfectly fine, only the CPU usage is higher, of course. Running nvidia-smi from the container I got the result below. Therefor I assume, that the GPU is passed through correctly?!
I followed several instructions and ended up with the docker-compose file below. As you can see, I tried "runtime: nvidia" and the "deploy" setting with the same result. At least with this config the GPU is recognized, but NVENC still isn't working. Do you have any idea what I'm missing here? I'm at the end of the rope here...
Thank you for your help!
docker-compose.yaml:
I'm running following software versions:
cli-version: 1.13.5
lib-version: 1.13.5
build date: 2023-07-18T11:38+00:00
build revision: 66607bd046341f7aad7de80a9f022f122d1f2fce
build compiler: x86_64-linux-gnu-gcc-7 7.5.0
build platform: x86_64
build flags: -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DNDEBUG -std=gnu11 -O2 -g -fdata-sections -ffunction-sections -fplan9-extensions -fstack-protector -fno-strict-aliasing -fvisibility=hidden -Wall -Wextra -Wcast-align -Wpointer-arith -Wmissing-prototypes -Wnonnull -Wwrite-strings -Wlogical-op -Wformat=2 -Wmissing-format-attribute -Winit-self -Wshadow -Wstrict-prototypes -Wunreachable-code -Wconversion -Wsign-conversion -Wno-unknown-warning-option -Wno-format-extra-args -Wno-gnu-alignof-expression -Wl,-zrelro -Wl,-znow -Wl,-zdefs -Wl,--gc-sections
Resulting log for the stream:
Beta Was this translation helpful? Give feedback.
All reactions