Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed May 12, 2024
1 parent 580ec68 commit eaf716f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_api_rocm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ jobs:
--workdir /workspace
run: |
pip install -e .[testing,timm,diffusers,codecarbon]
pytest -s -x -k 'api and cuda'
pytest -s -x -k "api and cuda"
6 changes: 3 additions & 3 deletions docker/unroot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ ENV PATH="/home/user/.local/bin:${PATH}"
RUN addgroup --gid $GROUP_ID group
RUN adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID user

# For ROCm, the user needs to be in the video and render groups
RUN if [ -d /dev/dri ]; then usermod -a -G video user; fi
RUN if [ -d /dev/dri ]; then usermod -a -G render user; fi
# For ROCm, the user needs to be in the video and render groups, check with /opt/rocm/
RUN if [ -d /opt/rocm/ ]; then usermod -a -G video user; fi
RUN if [ -d /opt/rocm/ ]; then usermod -a -G render user; fi

USER user
WORKDIR /home/user
Expand Down

0 comments on commit eaf716f

Please sign in to comment.