Add ollama user to video group
On OpenSUSE, ollama needs to be a member of the video group to access the GPU
This commit is contained in:
parent
076237b8ea
commit
74468513bd
1 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,10 @@ configure_systemd() {
|
|||
status "Adding ollama user to render group..."
|
||||
$SUDO usermod -a -G render ollama
|
||||
fi
|
||||
if getent group video >/dev/null 2>&1; then
|
||||
status "Adding ollama user to video group..."
|
||||
$SUDO usermod -a -G video ollama
|
||||
fi
|
||||
|
||||
status "Adding current user to ollama group..."
|
||||
$SUDO usermod -a -G ollama $(whoami)
|
||||
|
|
Loading…
Reference in a new issue