From 2f604ff5d3d8656d0600bfcb0c98d50090430739 Mon Sep 17 00:00:00 2001 From: chuanqiw Date: Thu, 17 Oct 2024 15:38:28 +0200 Subject: [PATCH 1/2] XPU binary build enable --- .github/workflows/build_wheels_linux.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index 48b847c44b..14623be8d5 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -29,6 +29,7 @@ jobs: with-cpu: enable with-cuda: enable with-rocm: enable + with-xpu: enable build: needs: generate-matrix From 90eb3ab5fdd0a808cc12ee17382cd17839be1efd Mon Sep 17 00:00:00 2001 From: chuanqiw Date: Fri, 18 Oct 2024 14:57:33 +0200 Subject: [PATCH 2/2] use manylinux_2_28 platform for xpu wheel --- packaging/post_build_script.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packaging/post_build_script.sh b/packaging/post_build_script.sh index de8ee956f2..611931f7d3 100644 --- a/packaging/post_build_script.sh +++ b/packaging/post_build_script.sh @@ -11,7 +11,11 @@ WHEEL_NAME=$(ls dist/) pushd dist # Prepare manywheel -auditwheel repair --plat manylinux2014_x86_64 -w . \ +manylinux_plat=manylinux2014_x86_64 +if [[ "$CU_VERSION" == "xpu" ]]; then + manylinux_plat=manylinux_2_28_x86_64 +fi +auditwheel repair --plat "$manylinux_plat" -w . \ --exclude libtorch.so \ --exclude libtorch_python.so \ --exclude libtorch_cuda.so \