Skip to content

Commit

Permalink
[ci] update script
Browse files Browse the repository at this point in the history
  • Loading branch information
AshburnLee committed Sep 3, 2024
1 parent 3e6ef53 commit e294554
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/auto-update-translator-cid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ jobs:
with:
repository: pytorch/pytorch

# TODO: remove this step once ipex is deprecated for benchdmark
- name: Setup NO-OP-IPEX
if: ${{ env.TARGET_PRID == null }}
uses: ./.github/actions/setup-no-op-ipex

- name: Install test dependencies
if: ${{ env.TARGET_PRID == null }}
run: |
Expand Down Expand Up @@ -84,7 +89,7 @@ jobs:
if: ${{ env.TARGET_PRID == null }}
run: |
env
./scripts/check_update_tranlator_cid.sh $CID_LATEST $CID_CURRENT
./scripts/check-update-translator-cid.sh $CID_LATEST $CID_CURRENT
if git status --porcelain ./lib/Target/SPIRV/spirv-llvm-translator.conf | grep '^ M'; then
echo "MODIFIED=true" >> $GITHUB_ENV
echo "spirv-llvm-translator.conf has been modified"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ FOUND=false
for cid in $COMMIT_IDS; do
echo "$cid" > ./lib/Target/SPIRV/spirv-llvm-translator.conf
if ! ./scripts/compile-triton.sh --clean; then
echo "Compile failed for translator commit $cid"
echo "Triton compile failed for translator commit $cid"
continue
fi
fi

# build pytorch and IPEX outside of 'test-triton.sh'
# execute full tests
if ./scripts/test-triton.sh --skip-deps; then
echo "Tests passed for translator commit $cid"
echo "A newer commit found: $cid"
Expand Down

0 comments on commit e294554

Please sign in to comment.