Skip to content

Commit

Permalink
change env name
Browse files Browse the repository at this point in the history
  • Loading branch information
mengfei25 committed Nov 1, 2024
1 parent 0dbc2a0 commit baff73f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/_linux_ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ jobs:
run: |
pwd
which conda && conda clean -ay
conda remove --all -y -n mengfeil || \
rm -rf $(dirname ${CONDA_EXE})/../envs/mengfeil
conda create -n mengfeil python=${{ inputs.python }} cmake ninja -y
source activate mengfeil
conda remove --all -y -n mengfeil_${{ inputs.abi }} || \
rm -rf $(dirname ${CONDA_EXE})/../envs/mengfeil_${{ inputs.abi }}
conda create -n mengfeil_${{ inputs.abi }} python=${{ inputs.python }} cmake ninja -y
source activate mengfeil_${{ inputs.abi }}
cd ../ && rm -rf pytorch
git clone https://github.com/pytorch/pytorch pytorch
cd pytorch && git checkout af306a392cb84540b4798edea18cc5313a94e1ec
Expand All @@ -81,7 +81,7 @@ jobs:
fi
- name: Triton Installation
run: |
source activate mengfeil
source activate mengfeil_${{ inputs.abi }}
cd ../pytorch
TRITON_REPO="https://github.com/intel/intel-xpu-backend-for-triton"
if [ -z ${{ inputs.triton }} ]; then
Expand All @@ -95,7 +95,7 @@ jobs:
fi
- name: Build Pytorch XPU
run: |
source activate mengfeil
source activate mengfeil_${{ inputs.abi }}
source .github/scripts/env.sh
# pip install mkl-static mkl-include
cd ../pytorch
Expand All @@ -117,7 +117,7 @@ jobs:
pip install -r .ci/docker/requirements-ci.txt
- name: Torch Config
run: |
source activate mengfeil
source activate mengfeil_${{ inputs.abi }}
source .github/scripts/env.sh
python -c "import torch; print(torch.__config__.show())"
python -c "import torch; print(torch.__config__.parallel_info())"
Expand All @@ -134,7 +134,7 @@ jobs:
cd ${{ github.workspace }}
xpu-smi discovery
source .github/scripts/env.sh
source activate mengfeil
source activate mengfeil_${{ inputs.abi }}
cd ${{ github.workspace }}
cd test/regressions
pip install pytest
Expand All @@ -145,7 +145,7 @@ jobs:
cd ${{ github.workspace }}
xpu-smi discovery
source .github/scripts/env.sh
source activate mengfeil
source activate mengfeil_${{ inputs.abi }}
export ZE_AFFINITY_MASK_OLD=${ZE_AFFINITY_MASK}
unset ZE_AFFINITY_MASK
cd ${{ github.workspace }}
Expand All @@ -157,15 +157,15 @@ jobs:
if: contains(inputs.ut, 'op_extended') || github.event_name == 'schedule'
run: |
source .github/scripts/env.sh
source activate mengfeil
source activate mengfeil_${{ inputs.abi }}
export PYTORCH_TEST_WITH_SLOW=1
cd ../pytorch/third_party/torch-xpu-ops/test/xpu/extended/
timeout 10000 python run_test_with_skip.py
- name: Run XPU OP UT
if: contains(inputs.ut, 'op_ut') || github.event_name == 'schedule'
run: |
source .github/scripts/env.sh
source activate mengfeil
source activate mengfeil_${{ inputs.abi }}
export PYTORCH_ENABLE_XPU_FALLBACK=1
export PYTORCH_TEST_WITH_SLOW=1
cd ../pytorch/third_party/torch-xpu-ops/test/xpu
Expand All @@ -179,7 +179,7 @@ jobs:
if: contains(inputs.ut, 'torch_xpu') || github.event_name == 'schedule'
run: |
source .github/scripts/env.sh
source activate mengfeil
source activate mengfeil_${{ inputs.abi }}
cd ../pytorch
TEST_REPORTS_DIR=$(pwd)/test/test-reports
rm -rf "$TEST_REPORTS_DIR" && mkdir -p "$TEST_REPORTS_DIR"
Expand Down

0 comments on commit baff73f

Please sign in to comment.