Skip to content

Commit

Permalink
Update rocm_ci.yml
Browse files Browse the repository at this point in the history
Make each run create its own temporary directory for the cloned repo files
  • Loading branch information
tenpercent authored Apr 1, 2024
1 parent 09a3831 commit ac2f07b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/rocm_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ jobs:
rocm-smi
rocminfo | grep "gfx"
export XFORMERS_PATH="$(mktemp -d)"
echo XFORMERS_PATH = $XFORMERS_PATH
- name: Build XFormers
run: |
git clone --recursive -b "$GIT_BRANCH" "https://github.com/$GITHUB_REPOSITORY"
docker run -it --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --device=/dev/kfd --device=/dev/dri --group-add video --ipc=host --shm-size 8G -v $PWD/xformers:/xformers rocm/pytorch-nightly:latest
git clone --recursive -b "$GIT_BRANCH" "https://github.com/$GITHUB_REPOSITORY" $XFORMERS_PATH
docker run -it --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --device=/dev/kfd --device=/dev/dri --group-add video --ipc=host --shm-size 8G -v $XFORMERS_PATH:/xformers rocm/pytorch-nightly:latest
pip3 install --upgrade pip
pip3 uninstall -y xformers
Expand Down

0 comments on commit ac2f07b

Please sign in to comment.