From b9b464d2ccf1481faf66d6b78f9a364ba3b1101c Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 23 Aug 2026 22:03:58 +0200 Subject: [PATCH] docs: GPU acceleration (#1398) --- readme.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 3d0d8cd..ae349f8 100644 --- a/readme.md +++ b/readme.md @@ -203,7 +203,7 @@ kubectl apply -f https://raw.githubusercontent.com/vdsm/virtual-dsm/refs/heads/m ### How do I enable GPU acceleration? - To enable hardware-accelerated graphics, add the following lines to your compose file: + To enable GPU acceleration using an Intel or AMD GPU, add the following lines to your compose file: ```yaml environment: @@ -212,7 +212,24 @@ kubectl apply -f https://raw.githubusercontent.com/vdsm/virtual-dsm/refs/heads/m - /dev/dri ``` - This can be used to enable the facial recognition function in Synology Photos, but does not provide hardware transcoding for video. + For NVIDIA GPUs, the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html) must be installed on the host and the GPU must be exposed to the container: + + ```yaml + environment: + GPU: "Y" + NVIDIA_DRIVER_CAPABILITIES: "all" + + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: + - gpu + ``` + + GPU acceleration can be used to enable the facial recognition function in Synology Photos, but currently does not provide hardware transcoding for video yet. ### How do I enable dynamic memory allocation?