Idea #21926
openAMD ROCm GPU support
Description
docker run -it --device=/dev/kfd --device=/dev/dri/card0 --device=/dev/dri/renderD128 --group-add=video --network=host --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --shm-size 16G -v [directory binding options] --name [ollama-blablabla] ollama/ollama:rocm
https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/docker.html
Files
Updated by Peter Amstutz 4 months ago
- Subject changed from ROCm GPU support to AMD ROCm GPU support
Updated by Peter Amstutz 4 days ago
It works without --network=host --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --shm-size 16G
Those options all reduce security, so if we can make it work with just this, that's way better:
docker run -it --device=/dev/kfd --device=/dev/dri/card0 --device=/dev/dri/renderD128 --group-add=video -v [directory binding options] --name [ollama-blablabla] ollama/ollama:rocm
Updated by Peter Amstutz 3 days ago
- File crunch-run_3.1.0~dev20241218180627-1_amd64.deb crunch-run_3.1.0~dev20241218180627-1_amd64.deb added
Attached package implements prototype ROCm support in crunch run.
If AMD_VISIBLE_DEVICES is set when crunch-run is executed (you can set AMD_VISIBLE_DEVICES before running crunch-dispatch-local) then crunch-run will make the GPU devices available to the container.