File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments