From 364d911fe4c22e47835559ba074f4fd754343354 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 13 Nov 2026 12:30:31 -0500 Subject: [PATCH] Expose NVIDIA acceleration to Tunarr on the media host --- README.md | 4 ++++ deploy/compose.nvidia.yaml | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 deploy/compose.nvidia.yaml diff --git a/README.md b/README.md index 43446f3..a04a1ef 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,10 @@ docker compose logs -f bridge tunarr Use `http://:4242/web/` for the programming UI and `/api/v1/health` for the bridge health check. Tunarr's internal port 8000 is published only on host loopback port 14242. The bridge uses host networking for SSDP on UDP 1900 and binds HTTP to the configured LAN IP. Admin and device access currently share the trusted LAN with no bridge-level authentication. Compose persists Tunarr's configuration and the bridge's UUID in named volumes. Tunarr defaults to two CPU cores of capacity to limit the impact of scans and transcoding on the host. Set `TUNARR_CPUS` in `.env` to change the limit. +## NVIDIA transcoding on this host + +The current host uses the NVIDIA Compose override for Tunarr's CUDA transcode profile. The local `.env` selects it with `COMPOSE_FILE=compose.yaml:deploy/compose.nvidia.yaml`. The override maps NVIDIA device nodes and the host's x86-64 driver libraries into Tunarr. If the host driver version changes, set `TUNARR_NVIDIA_DRIVER_VERSION` in `.env` to the version shown by `nvidia-smi` and recreate Tunarr with `docker compose up -d --no-deps tunarr`. + ## Roku Run `./roku/build.sh` to produce `roku/dist/retroLabs.zip`. See [Roku setup and controls](roku/README.md) for sideloading and manual server entry. diff --git a/deploy/compose.nvidia.yaml b/deploy/compose.nvidia.yaml new file mode 100644 index 0000000..b3a3b40 --- /dev/null +++ b/deploy/compose.nvidia.yaml @@ -0,0 +1,13 @@ +# NVIDIA driver devices and libraries on a Linux x86-64 host. +services: + tunarr: + devices: + - /dev/nvidia0 + - /dev/nvidiactl + - /dev/nvidia-uvm + volumes: + - /lib/x86_64-linux-gnu/libcuda.so.1:/usr/lib/x86_64-linux-gnu/libcuda.so.1:ro + - /lib/x86_64-linux-gnu/libnvidia-encode.so.1:/usr/lib/x86_64-linux-gnu/libnvidia-encode.so.1:ro + - /lib/x86_64-linux-gnu/libnvcuvid.so.1:/usr/lib/x86_64-linux-gnu/libnvcuvid.so.1:ro + - /lib/x86_64-linux-gnu/libnvidia-ptxjitcompiler.so.1:/usr/lib/x86_64-linux-gnu/libnvidia-ptxjitcompiler.so.1:ro + - /lib/x86_64-linux-gnu/libnvidia-gpucomp.so.${TUNARR_NVIDIA_DRIVER_VERSION:-580.178.04}:/usr/lib/x86_64-linux-gnu/libnvidia-gpucomp.so.${TUNARR_NVIDIA_DRIVER_VERSION:-580.178.04}:ro