Skip to content

Commit

Permalink
Fix xpu linux wheel test for release build (#1983)
Browse files Browse the repository at this point in the history
* Fix xpu linux wheel test for release build

* install conda for xpu binary test image

* activate xpu env

* remvoe xpu env activate due to duplicated
  • Loading branch information
chuanqi129 authored Sep 11, 2024
1 parent 1cdd6fa commit bd1ddfa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/validate-linux-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ jobs:
repository: "pytorch/builder"
ref: ${{ inputs.ref || github.ref }}
job-name: ${{ matrix.build_name }}
docker-image: ${{ matrix.gpu_arch_type == 'xpu' && matrix.container_image || 'pytorch/conda-builder' }}
binary-matrix: ${{ toJSON(matrix) }}
timeout: 180
script: |
Expand All @@ -157,6 +158,10 @@ jobs:
export USE_FORCE_REINSTALL=${{ inputs.use-force-reinstall }}
export TARGET_OS="linux"
# Due to xpu doesn't use pytorch/conda-builder image, need to install conda firstly
if [[ ${{ matrix.gpu_arch_type }} == 'xpu' ]]; then
source ./common/install_conda.sh
fi
eval "$(conda shell.bash hook)"
printf '%s\n' ${{ toJson(inputs.release-matrix) }} > release_matrix.json
Expand Down

0 comments on commit bd1ddfa

Please sign in to comment.