Skip to content

Commit 20e9aa7

Browse files
chuanqi129pytorchmergebot
authored andcommitted
use gcc13
1 parent 7cca41a commit 20e9aa7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/build-triton-wheel.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,18 @@ jobs:
126126
127127
docker exec -t "${container_name}" yum install -y zlib-devel zip
128128
docker exec -t "${container_name}" "${PYTHON_EXECUTABLE}" -m pip install -U setuptools==67.4.0 pybind11==2.13.1 auditwheel
129-
if [[ ("${{ matrix.device }}" == "cuda" || "${{ matrix.device }}" == "rocm" || "${{ matrix.device }}" == "xpu") ]]; then
129+
if [[ ("${{ matrix.device }}" == "cuda" || "${{ matrix.device }}" == "rocm") ]]; then
130130
# With this install, it gets clang 16.0.6.
131131
docker exec -t "${container_name}" dnf install clang lld -y
132132
WITH_CLANG_LDD="--with-clang-ldd"
133133
fi
134-
docker exec -t "${container_name}" bash -c "${PYTHON_EXECUTABLE} /pytorch/.github/scripts/build_triton_wheel.py --device=$BUILD_DEVICE $RELEASE $WITH_CLANG_LDD"
135-
if [[ "${{ matrix.device }}" == "cuda" ]]; then
134+
if [[ "${BUILD_DEVICE}" == xpu ]]; then
135+
docker exec -t "${container_name}" bash -c "dnf install -y gcc-toolset-13-gcc-c++"
136+
docker exec -t "${container_name}" bash -c "source /opt/rh/gcc-toolset-13/enable && ${PYTHON_EXECUTABLE} /pytorch/.github/scripts/build_triton_wheel.py --device=$BUILD_DEVICE $RELEASE"
137+
else
138+
docker exec -t "${container_name}" bash -c "${PYTHON_EXECUTABLE} /pytorch/.github/scripts/build_triton_wheel.py --device=$BUILD_DEVICE $RELEASE $WITH_CLANG_LDD"
139+
fi
140+
if [[ ("${{ matrix.device }}" == "cuda" || "${{ matrix.device }}" == "xpu") ]]; then
136141
docker exec -t "${container_name}" bash -c "auditwheel repair --plat ${PLATFORM} //artifacts/*.whl"
137142
else
138143
docker exec -t "${container_name}" bash -c "mkdir //artifacts/wheelhouse"

0 commit comments

Comments
 (0)