SOLVED: GPU support broken in 1.32 container.

Support for the docker image maintained by dlandon
Post Reply
ArchanfelHUN
Posts: 5
Joined: Wed Jan 02, 2019 8:06 am

SOLVED: GPU support broken in 1.32 container.

Post by ArchanfelHUN »

Hi!

I try to use an nvidia quadro card for hw accelerated decoding.
Installed the nvidia docker toolkit on the host, using docker compose with these options:

runtime: nvidia
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
environment:
- "NVIDIA_VISIBLE_DEVICES=all"
- "NVIDIA_DRIVER_CAPABILITIES=all"

In the container the nvidia-smi shows this:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.42.01 Driver Version: 470.42.01 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Quadro P600 On | 00000000:0A:00.0 Off | N/A |
| 34% 36C P8 N/A / N/A | 1MiB / 1999MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+

So the container sees the GPU and its working.
ffmpeg shows this:
Hardware acceleration methods:
vdpau
vaapi
cuvid

So i trying to use 'cuvid' or 'vdpau'

I try to add to the ffmpeg parameter on the settings, image settings the ffmpeg hwaccel paramter, and using cuvid on the monitor settings page where the hwaccel name and device is.
The monitor up and running no error, but still not using the GPU, its using the CPU. I try with hwaccel device name: cuvid
hwaccel device: /dev/nvidia0 or just '0', or leave it empty. No difference.

Anybody can make this work anyhow? Im spent 2 days without success. I installed zm on the host so that not using docker, same issue. hw acceleration not working neither.

Thanks, Peter
ArchanfelHUN
Posts: 5
Joined: Wed Jan 02, 2019 8:06 am

Re: SOLVED: GPU support broken in 1.32 container.

Post by ArchanfelHUN »

I did used this container:
https://hub.docker.com/r/dlandon/zonemi ... e.learning

With nvidia docker toolkit on the host and the corresponding ENV parameters in the docker compose file and using the nvidia runtime.
The HW accel methods in the camera settings page is cuda and cuvid.

None other container working, because the ffmpeg lack of cuda support in every other one.

I run multiple containers and now i see this in the host:
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 15269 C /usr/bin/zmc 79MiB |
| 0 N/A N/A 15329 C /usr/bin/zmc 73MiB |
| 0 N/A N/A 15352 C /usr/bin/zmc 79MiB |
| 0 N/A N/A 15380 C /usr/bin/zmc 45MiB |
| 0 N/A N/A 15618 C /usr/bin/zmc 59MiB |
| 0 N/A N/A 15957 C /usr/bin/zmc 79MiB |
| 0 N/A N/A 20746 C /usr/bin/zmc 52MiB |
| 0 N/A N/A 25236 C /usr/bin/zmc 50MiB |
| 0 N/A N/A 36074 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 36623 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 36669 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 36809 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 36841 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 37147 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 37488 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 38407 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 41522 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 41701 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 41741 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 44683 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 45606 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 46850 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 47729 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 47798 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 51621 C /usr/bin/zmc 40MiB |
| 0 N/A N/A 51666 C /usr/bin/zmc 40MiB |
+-----------------------------------------------------------------------------+

Case closed.
Post Reply