Unanble access GPU from container #23655
-
I have podman version 4.6.2 AMD Radeon RX 6800 XT Ubuntu 22.04 lts and my ollama I used model phi3 and doesn't have access to GPU for some reason but it should. Please can you help me? Here is how I dit it: podman run -d --pod ollama-stack --device /dev/kfd --device /dev/dri \
--group-add="video" \
--security-opt unmask=/sys/dev \
-e 'HSA_OVERRIDE_GFX_VERSION="10.3.0"' \
-v ollama:/root/.ollama \
--name ollama ollama/ollama:rocm I tried even use Log:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I discovered you have to use |
Beta Was this translation helpful? Give feedback.
I discovered you have to use
--group-add keep-groups
.--group-add="video"
will give you video group of container not system video group but ollama still give me same error i was able to run pytorch in container but not ollama i don't know where is problem.Its probably AMD rocm issue I will test it with rootless docker and probably report it on rocm GitHub.