Skip to content

Commit

Permalink
Modify nighlty (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
mengfei25 authored and yuchengliu1 committed Aug 27, 2024
1 parent 1e10041 commit 8b174b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/actions/inductor-xpu-e2e-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ runs:
source activate e2e_ci
source .github/scripts/env.sh
if [[ ${{ inputs.suite }} == *"torchbench"* ]]; then
if [[ ${{ inputs.pytorch }} != *" wheel"* ]]; then
if [[ "${{ inputs.pytorch }}" != *" wheel"* ]]; then
cd ../ && rm -rf audio && git clone --single-branch -b main https://github.com/pytorch/audio.git
cd audio && git checkout $TORCHAUDIO_COMMIT_ID
python setup.py bdist_wheel && pip uninstall torchaudio -y && pip install dist/*.whl
Expand All @@ -70,7 +70,7 @@ runs:
pip install --force-reinstall git+https://github.com/huggingface/transformers@${TRANSFORMERS_VERSION}
fi
if [[ ${{ inputs.suite }} == *"timm_models"* ]]; then
if [[ ${{ inputs.pytorch }} != *" wheel"* ]]; then
if [[ "${{ inputs.pytorch }}" != *" wheel"* ]]; then
cd ../ && rm -rf vision && git clone --single-branch -b main https://github.com/pytorch/vision.git
cd vision && git checkout $TORCHVISION_COMMIT_ID
python setup.py bdist_wheel && pip uninstall torchvision -y && pip install dist/*.whl
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_linux_ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
source activate xpu_op_${ZE_AFFINITY_MASK}
cd ../ && rm -rf pytorch
git clone https://github.com/pytorch/pytorch pytorch
cd pytorch && git checkout $(echo ${{ inputs.pytorch }} |awk '{print $1}')
cd pytorch && git checkout $(echo "${{ inputs.pytorch }}" |awk '{print $1}')
# apply PRs for stock pytorch
pip install requests
python ../torch-xpu-ops/.github/scripts/apply_torch_pr.py
Expand All @@ -77,7 +77,7 @@ jobs:
else
export _GLIBCXX_USE_CXX11_ABI=1
fi
if [[ ${{ inputs.pytorch }} != *" wheel"* ]]; then
if [[ "${{ inputs.pytorch }}" != *" wheel"* ]]; then
export CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}:${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
pip install -r requirements.txt
WERROR=1 python setup.py bdist_wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly_ondemand_whl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ jobs:
uses: ./.github/workflows/_linux_ut.yml
with:
ut: ${{ github.event_name == 'schedule' && 'op_example,op_extended,op_ut,torch_xpu' || inputs.ut }}
pytorch: ${{ github.event_name == 'schedule' && 'main' || inputs.pytorch }}
python: ${{ github.event_name == 'schedule' && '3.10' || inputs.python }}
pytorch: nightly wheel
runner: linux.idc.xpu
Expand Down Expand Up @@ -112,6 +111,7 @@ jobs:
pip install requests
python ../torch-xpu-ops/.github/scripts/apply_torch_pr.py
git status && git show -s
pip install -r requirements.txt
cd ../
pip install torch torchvision torchaudio --pre --index-url https://download.pytorch.org/whl/nightly/xpu
- name: Identify pinned versions
Expand Down

0 comments on commit 8b174b1

Please sign in to comment.