-
Couldn't load subscription status.
- Fork 2.7k
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
base: main
Are you sure you want to change the base?
Changes from all commits
edd2426
b3564c6
2afcb15
dee662f
78345ee
9620c5d
5af90a7
d5b65bf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,25 @@ USER=ubuntu | |
| # if the user does not exist, create it. It is expected to be present on ubuntu >=24.x | ||
| _=$(id ${USER} 2>&1) || useradd -u ${USER_ID} ${USER} | ||
| # ensure the UID is correct | ||
| usermod -u ${USER_ID} ${USER} 1>/dev/null | ||
| usermod -u ${USER_ID} ${USER} || true 1>/dev/null | ||
| mkdir -p /home/${USER} | ||
| chown ${USER} /home/${USER} | ||
|
|
||
| # Add ${USER} in render group when required | ||
| if [ -c /dev/kfd ] | ||
| then | ||
| RENDER_GID=$(stat -c %g /dev/kfd) | ||
| _=$(getent group ${RENDER_GID} 2>&1) || groupadd -g ${RENDER_GID} render | ||
| usermod -a -G $RENDER_GID $USER | ||
| fi | ||
|
|
||
| # Add ${USER} in video group when required | ||
| if [ -c /dev/dri/card0 ] | ||
| then | ||
| VIDEO_GID=$(stat -c %g /dev/dri/card0) | ||
| _=$(getent group ${VIDEO_GID} 2>&1) || groupadd ${VIDEO_GID} video | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be |
||
| usermod -a -G $VIDEO_GID $USER | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| fi | ||
|
|
||
| ### Set the $PUBLIC_KEY env var to enable SSH access. | ||
| # We do not install openssh-server in the image by default to avoid bloat. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.