docs: document Docker Desktop /dev/kfd limitation on Linux#98
Merged
sgopinath1 merged 6 commits intoROCm:mainfrom Feb 17, 2026
Merged
docs: document Docker Desktop /dev/kfd limitation on Linux#98sgopinath1 merged 6 commits intoROCm:mainfrom
sgopinath1 merged 6 commits intoROCm:mainfrom
Conversation
shiv-tyagi
reviewed
Feb 16, 2026
Member
shiv-tyagi
left a comment
There was a problem hiding this comment.
Thanks @nikhilsk. Posted comments. PTAL.
shiv-tyagi
reviewed
Feb 17, 2026
shiv-tyagi
reviewed
Feb 17, 2026
shiv-tyagi
reviewed
Feb 17, 2026
Co-authored-by: Shiv Tyagi <67995771+shiv-tyagi@users.noreply.github.com>
Co-authored-by: Shiv Tyagi <67995771+shiv-tyagi@users.noreply.github.com>
Co-authored-by: Shiv Tyagi <67995771+shiv-tyagi@users.noreply.github.com>
shiv-tyagi
reviewed
Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #86
Problem
On Linux, when Docker Desktop is running, containers cannot access host GPU devices (
/dev/kfd,/dev/dri). Users see:See issue #86.
Proposed workaround
docker.ioor Docker's official repository) on Linux for GPU workloads so the daemon runs on the host and can expose/dev/kfdand/dev/dri.Test results
Verified on a Linux host with Docker Engine (
defaultcontext,unix:///var/run/docker.sock):1. Same command as in issue #86 (with
--rmadded so the container is removed on exit):docker run -it --rm \ --cap-add=SYS_PTRACE \ --security-opt seccomp=unconfined \ --device=/dev/kfd \ --device=/dev/dri \ --group-add video \ --ipc=host \ --shm-size 8G \ rocm/pytorch:latest/dev/kfderror).rocm-smishowed GPU devices;python -c "import torch; print(torch.cuda.is_available())"returnedTrue.2. Quick smoke test:
rocm-smishowed the GPU. No leftover container.This confirms that when Docker Engine is used (not Docker Desktop), the documented workaround works and the exact run command from #86 succeeds.