Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add Support for rocm57 required by some AMD GPU #7531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cbayle wants to merge 8 commits into invoke-ai:main
base: main
Choose a base branch
Loading
from cbayle:rocm57

Conversation

Copy link

@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

Copy link

anything holding this back?

max298 reacted with eyes emoji

Copy link

@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

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

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

Reviewers

@psychedelicious psychedelicious psychedelicious left review comments

@lstein lstein Awaiting requested review from lstein lstein is a code owner

@blessedcoolant blessedcoolant Awaiting requested review from blessedcoolant blessedcoolant is a code owner

@hipsterusername hipsterusername Awaiting requested review from hipsterusername hipsterusername is a code owner

@ebr ebr Awaiting requested review from ebr ebr is a code owner

+1 more reviewer

@en0 en0 en0 left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /