Skip to content

Commit

Permalink
Follow up cleanup after #2149 (#3050)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev authored Dec 20, 2024
1 parent 00858c3 commit 178d49d
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 29 deletions.
16 changes: 2 additions & 14 deletions .github/actions/setup-pytorch/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
default: /opt/intel/oneapi
repository:
description: Repository name with owner
default: Stonepia/pytorch
default: pytorch/pytorch
ref:
description: Branch, tag, commit id
default: ""
Expand All @@ -26,11 +26,7 @@ runs:
if: inputs.ref == ''
shell: bash
run: |
if [[ "${{ inputs.repository }}" == "Stonepia/pytorch" ]]; then
PYTORCH_COMMIT_ID="$(<.github/pins/pytorch.txt)"
else
PYTORCH_COMMIT_ID="$(<.github/pins/pytorch-upstream.txt)"
fi
PYTORCH_COMMIT_ID="$(<.github/pins/pytorch.txt)"
echo "PYTORCH_REPO=${{ inputs.repository }}" | tee -a "$GITHUB_ENV"
echo "PYTORCH_COMMIT_ID=$PYTORCH_COMMIT_ID" | tee -a "$GITHUB_ENV"
Expand Down Expand Up @@ -58,7 +54,6 @@ runs:
fi
# PyTorch build process expects Intel oneAPI in /opt/intel/oneapi
# https://github.com/Stonepia/pytorch/blob/c9153c96f547f269581743e7443aa86d7e003505/cmake/Modules/FindMKL.cmake#L44
- name: Set up oneAPI
shell: bash
run: |
Expand Down Expand Up @@ -106,13 +101,6 @@ runs:
cd pytorch
../scripts/patch-pytorch.sh
# FIXME: Old PyTorch does not work with numpy==2.0.0
- name: Install numpy < 2.0.0
if: ${{ inputs.repository == 'Stonepia/pytorch' }}
shell: bash
run: |
pip install 'numpy<2.0.0'
- name: Build PyTorch
if: ${{ steps.pytorch-cache.outputs.status == 'miss' && inputs.mode == 'source' }}
shell: bash
Expand Down
1 change: 0 additions & 1 deletion .github/pins/ipex.txt

This file was deleted.

1 change: 0 additions & 1 deletion .github/pins/pytorch-upstream.txt

This file was deleted.

2 changes: 1 addition & 1 deletion .github/pins/pytorch.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22ce6c6508d1d13b263d4c8b1fd6b98505983e92
61dc5e9c0a36d590adc47b4110efd94d9eb59306
2 changes: 0 additions & 2 deletions .github/workflows/auto-update-translator-cid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ jobs:
- name: Setup PyTorch
if: ${{ env.TARGET_PRID == null }}
uses: ./.github/actions/setup-pytorch
with:
repository: pytorch/pytorch

- name: Install test dependencies
if: ${{ env.TARGET_PRID == null }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build-test-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ jobs:
- name: Setup PyTorch
uses: ./.github/actions/setup-pytorch
with:
repository: pytorch/pytorch
ref: ${{ inputs.pytorch_ref }}
mode: ${{ inputs.pytorch_mode }}

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/e2e-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ jobs:
- name: Setup PyTorch
uses: ./.github/actions/setup-pytorch
with:
repository: pytorch/pytorch
ref: ${{ inputs.pytorch_ref }}

- name: Set benchmark repository
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/inductor-tests-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:
- name: Setup PyTorch
uses: ./.github/actions/setup-pytorch
with:
repository: ${{ env.PYTORCH_REPO}}
ref: ${{ inputs.pytorch_ref }}

- name: Setup Triton
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/nightly-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main
paths:
- .github/workflows/nightly-wheels.yml
- .github/pins/pytorch-upstream.txt
- .github/pins/pytorch.txt

permissions: read-all

Expand Down Expand Up @@ -56,8 +56,6 @@ jobs:
- name: Setup PyTorch
uses: ./.github/actions/setup-pytorch
with:
repository: pytorch/pytorch

- name: Identify pinned versions
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/triton-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ jobs:
- name: Setup PyTorch
uses: ./.github/actions/setup-pytorch
with:
repository: pytorch/pytorch

- name: Build Triton wheels
uses: ./.github/actions/setup-triton
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-pytorch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ROOT=$(cd $(dirname "$0")/.. && pwd)
# Check installed torch

if [ "$BUILD_LATEST" = false ]; then
PYTORCH_PINNED_COMMIT="$(<$ROOT/.github/pins/pytorch-upstream.txt)"
PYTORCH_PINNED_COMMIT="$(<$ROOT/.github/pins/pytorch.txt)"
echo "***** Using pinned PyTorch commit $PYTORCH_PINNED_COMMIT by default. *****"
fi

Expand Down
2 changes: 1 addition & 1 deletion scripts/test-triton.sh
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ run_instrumentation_tests() {
run_inductor_tests() {
test -d pytorch || (
git clone https://github.com/pytorch/pytorch
rev=$(cat .github/pins/pytorch-upstream.txt)
rev=$(cat .github/pins/pytorch.txt)
cd pytorch
git checkout $rev
)
Expand Down

0 comments on commit 178d49d

Please sign in to comment.