Skip to content

Add Support for rocm57 required by some AMD GPU#7531

Closed
cbayle wants to merge 8 commits into
invoke-ai:mainfrom
cbayle:rocm57
Closed

Add Support for rocm57 required by some AMD GPU#7531
cbayle wants to merge 8 commits into
invoke-ai:mainfrom
cbayle:rocm57

Conversation

@cbayle
Copy link
Copy Markdown

@cbayle cbayle commented Jan 8, 2025

Summary

Add support for rocm57 required by some AMD GPU, For example my RX 7600 XT
fix /dev/kfd and /dev/dri/card0 ownership when required
fix a small issue of extra \n in docker/run.sh

Related Issues / Discussions

may fix bug #4211 when using docker/run.sh

Merge Plan

I took care not to provoke regression by adding a new rocm57 profile

Checklist

-[x] The PR has a short but descriptive title, suitable for a changelog
-[x] _Documentation added / updated in .env.sample

Comment thread docker/Dockerfile Outdated
Comment thread docker/Dockerfile
@linux-universe
Copy link
Copy Markdown

anything holding this back?

Copy link
Copy Markdown

@en0 en0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying similar fixes locally and noticed you had a couple typeos in this mr

if [ -c /dev/dri/card0 ]
then
VIDEO_GID=$(stat -c %g /dev/dri/card0)
_=$(getent group ${VIDEO_GID} 2>&1) || groupadd ${VIDEO_GID} video
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be groupadd -g ${VIDEO_GID} video

then
VIDEO_GID=$(stat -c %g /dev/dri/card0)
_=$(getent group ${VIDEO_GID} 2>&1) || groupadd ${VIDEO_GID} video
usermod -a -G $VIDEO_GID $USER
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

although this will likely work as is, it is more correct to do usermod -aG video $USER

@lstein lstein added the 6.13.5 Library Updates label May 17, 2026
@lstein lstein moved this to 6.13.5 LIBRARY UPDATES in Invoke - Community Roadmap May 17, 2026
@lstein
Copy link
Copy Markdown
Collaborator

lstein commented May 25, 2026

Superseded by #8867

@lstein lstein closed this May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.13.5 Library Updates docker

Projects

Status: 6.13.5 LIBRARY UPDATES

Development

Successfully merging this pull request may close these issues.

6 participants