Skip to content

Commit c360467

Browse files
mengfei25zxd1997066
authored andcommitted
test oneapi 2025.3
1 parent 43062c0 commit c360467

File tree

4 files changed

+39
-39
lines changed

4 files changed

+39
-39
lines changed

.github/actions/linux-uttest/action.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@ runs:
181181
echo -e "[ERROR] XCCL is not enabled"
182182
exit 1
183183
fi
184-
export CCL_ROOT=$(dirname $(which python))/../
185-
export PATH="${CCL_ROOT}/bin/libfabric:${PATH}"
186-
export LD_LIBRARY_PATH="${CCL_ROOT}/lib:${LD_LIBRARY_PATH}"
187184
python run_distributed_local.py \
188185
2> ${{ github.workspace }}/ut_log/xpu_distributed/xpu_distributed_test_error.log | \
189186
tee ${{ github.workspace }}/ut_log/xpu_distributed/xpu_distributed_test.log

.github/scripts/build.sh

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,30 +46,30 @@ cd ${WORKSPACE}/pytorch
4646
python -m pip install requests
4747
git submodule sync && git submodule update --init --recursive
4848
python -m pip install -r requirements.txt
49-
python -m pip install mkl-static==2025.2.0 mkl-include==2025.2.0
49+
python -m pip install mkl-static mkl-include
5050
export USE_STATIC_MKL=1
5151
if [ "${XPU_ONEAPI_PATH}" == "" ];then
5252
export PYTORCH_EXTRA_INSTALL_REQUIREMENTS=" \
53-
intel-cmplr-lib-rt==2025.2.1 | \
54-
intel-cmplr-lib-ur==2025.2.1 | \
55-
intel-cmplr-lic-rt==2025.2.1 | \
56-
intel-sycl-rt==2025.2.1 | \
57-
oneccl-devel==2021.16.1 | \
58-
oneccl==2021.16.1 | \
59-
impi-rt==2021.16.1 | \
60-
onemkl-sycl-blas==2025.2.0 | \
61-
onemkl-sycl-dft==2025.2.0 | \
62-
onemkl-sycl-lapack==2025.2.0 | \
63-
onemkl-sycl-rng==2025.2.0 | \
64-
onemkl-sycl-sparse==2025.2.0 | \
65-
dpcpp-cpp-rt==2025.2.1 | \
66-
intel-opencl-rt==2025.2.1 | \
67-
mkl==2025.2.0 | \
68-
intel-openmp==2025.2.1 | \
69-
tbb==2022.2.0 | \
70-
tcmlib==1.4.0 | \
71-
umf==0.11.0 | \
72-
intel-pti==0.13.1
53+
intel-cmplr-lib-rt | \
54+
intel-cmplr-lib-ur | \
55+
intel-cmplr-lic-rt | \
56+
intel-sycl-rt | \
57+
oneccl-devel | \
58+
oneccl | \
59+
impi-rt | \
60+
onemkl-sycl-blas | \
61+
onemkl-sycl-dft | \
62+
onemkl-sycl-lapack | \
63+
onemkl-sycl-rng | \
64+
onemkl-sycl-sparse | \
65+
dpcpp-cpp-rt | \
66+
intel-opencl-rt | \
67+
mkl | \
68+
intel-openmp | \
69+
tbb | \
70+
tcmlib | \
71+
umf | \
72+
intel-pti
7373
"
7474
fi
7575

.github/workflows/_linux_build.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
if: ${{ ! endsWith(inputs.pytorch, '_wheel') }}
6060
runs-on: ${{ needs.runner.outputs.runner_id }}
6161
container:
62-
image: 'pytorch/manylinux2_28-builder:xpu-2.9'
62+
image: 'intelgpu/ubuntu-22.04-lts2:2523.31'
6363
volumes:
6464
- ${{ github.workspace }}:${{ github.workspace }}
6565
env:
@@ -72,21 +72,30 @@ jobs:
7272
steps:
7373
- name: Install gh-cli
7474
run: |
75+
rm -rf ./*.whl ./*.log
7576
cat /etc/os-release
7677
hostname && id
7778
# install gh
78-
dnf install -y 'dnf-command(config-manager)'
79-
dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
80-
dnf install -y gh --repo gh-cli
81-
gh --version
79+
sudo apt update
80+
sudo apt install -y gpg-agent wget curl cmake git unzip zip libgl1 zlib1g-dev numactl \
81+
libglib2.0-dev rsync jq gcc-11 g++-11 python3-dev python3-venv gh
8282
- name: Setup python-${{ inputs.python }}
8383
run: |
8484
rm -rf /tmp/xpu-tool/myvenv
85-
local_python=$(echo ${{ inputs.python }} |awk -F. '{printf("cp%s%s-cp%s%s", $1, $2, $1, $2)}')
86-
/opt/python/${local_python}/bin/python -m venv /tmp/xpu-tool/myvenv
85+
curl -LsSf https://astral.sh/uv/install.sh | sh
86+
source $HOME/.local/bin/env
87+
uv venv /tmp/xpu-tool/myvenv --python 3.10 --clear
88+
source /tmp/xpu-tool/myvenv/bin/activate
8789
which python && python -V
8890
which pip && pip list
89-
pip install -U pip wheel setuptools
91+
uv pip install -U pip wheel setuptools
92+
- name: Install oneapi
93+
run: |
94+
rm -rf /opt/intel/oneapi
95+
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/aa5447b5-3644-43c8-8ec4-72d53f6ecc19/intel-deep-learning-essentials-2025.3.0.338_offline.sh
96+
sudo bash intel-deep-learning-essentials-2025.3.0.338_offline.sh -a -s --eula accept
97+
source /opt/intel/oneapi/setvars.sh
98+
icpx --version
9099
- name: Checkout torch-xpu-ops
91100
uses: actions/checkout@v4
92101
with:
@@ -113,8 +122,6 @@ jobs:
113122
TORCH_XPU_OPS_REPO="https://github.com/intel/torch-xpu-ops.git"
114123
TORCH_XPU_OPS_COMMIT="${{ inputs.torch_xpu_ops }}"
115124
fi
116-
# gcc 11
117-
source /opt/rh/gcc-toolset-11/enable
118125
source ${{ github.workspace }}/torch-xpu-ops/.github/scripts/env.sh
119126
${{ github.workspace }}/torch-xpu-ops/.github/scripts/build.sh \
120127
--WORKSPACE="${{ github.workspace }}" \
@@ -129,8 +136,6 @@ jobs:
129136
fi
130137
- name: Build Torchvision and Torchaudio
131138
run: |
132-
# gcc 11
133-
source /opt/rh/gcc-toolset-11/enable
134139
cd ./pytorch
135140
TORCHVISION_COMMIT_ID="$(cat .github/ci_commit_pins/vision.txt)"
136141
TORCHAUDIO_COMMIT_ID="$(cat .github/ci_commit_pins/audio.txt)"
@@ -177,9 +182,6 @@ jobs:
177182
curl -sSL https://raw.githubusercontent.com/intel/intel-xpu-backend-for-triton/${TRITON_COMMIT_ID}/python/triton/__init__.py 2>&1 |\
178183
grep '__version__' |head -n 1 |awk -F "'" '{print $2}'
179184
)"
180-
# gcc 13
181-
dnf install -y gcc-toolset-13-gcc-c++ zlib-devel
182-
source /opt/rh/gcc-toolset-13/enable
183185
pip install cmake ninja pybind11
184186
python .github/scripts/build_triton_wheel.py --device xpu --commit-hash ${TRITON_COMMIT_ID} --triton-version ${TRITON_VERSION_NAME} \
185187
2>&1 |tee ${{ github.workspace }}/build_triton_${TRITON_COMMIT_ID}.log

.github/workflows/_linux_ut.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ jobs:
166166
else
167167
ut_list="${{ inputs.ut }}"
168168
fi
169+
cp ${{ github.workspace }}/.github/scripts/ut_result_check.sh ./
169170
for ut_name in ${ut_list}
170171
do
171172
cp Known_issue.log.tmp Known_issue.log

0 commit comments

Comments
 (0)