Skip to content

Add Support for rocm57 required by some AMD GPU#7531

Open
cbayle wants to merge 8 commits intoinvoke-ai:mainfrom
cbayle:rocm57
Open

Add Support for rocm57 required by some AMD GPU#7531
cbayle wants to merge 8 commits intoinvoke-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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants