From baff73f2ae29f79253c18b2ec73d6ee8f40f1d08 Mon Sep 17 00:00:00 2001 From: mengfeil Date: Fri, 1 Nov 2024 17:30:47 +0800 Subject: [PATCH] change env name --- .github/workflows/_linux_ut.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index 8e23ff50c..7e5b2cdaf 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -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 @@ -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 @@ -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 @@ -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())" @@ -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 @@ -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 }} @@ -157,7 +157,7 @@ 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 @@ -165,7 +165,7 @@ jobs: 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 @@ -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"