Repository navigation
[CD] Port XPU manywheel build to the Python pipeline - #182942
chuanqi129 wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/182942
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 12 Unclassified FailuresAs of commit 7a81bfb with merge base b656629 ( UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
46e1a61 to
cce2e91
Compare
543d349 to
7e0f71d
Compare
|
@pytorchbot rebase -b main |
|
@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here |
Reroute GPU_ARCH_TYPE=xpu through the same set_desired_python -> build_env_setup -> build_install_deps -> build_wheel -> repair_wheel chain that x86/aarch64 CUDA and CPU already use, and delete the standalone build_xpu.sh. build_env_setup.py: Add XPU_BUILD_ENV with the original build_xpu.sh flags (USE_STATIC_MKL, USE_ONEMKL, USE_XCCL, USE_MPI=0, etc.) and a source_oneapi_env() helper that sources the five Intel oneAPI vars.sh scripts by capturing the resulting environment from a bash subprocess. repair_wheel.py: Add an XPU branch that sets RPATHs to the Intel pypi runtime packages (following the same pattern as CUDA). XPU wheels are now retagged to manylinux_2_28_x86_64. build.sh: Move the xpu case into the new pipeline alongside cuda/cpu; drop the bash build_xpu.sh fallback. cpu-s390x continues to flow through build_common.sh unchanged. Authored with Claude.
|
Successfully rebased |
7dd1671 to
7a81bfb
Compare
|
@pytorchbot merge |
Merge failedReason: This PR needs a If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised by workflow job |
|
@pytorchmergebot merge -f "all looks good" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
## Summary Port the XPU manylinux build from the legacy bash scripts (`build_xpu.sh` + `build_common.sh`) to the Python pipeline (`build_env_setup.py` + `build_install_deps.py` + `build_wheel.py` + `repair_wheel.py`), following the same pattern as pytorch#182409 (CUDA/CPU) and pytorch#182696 (ROCm). - Add `XPU_BUILD_ENV` and `source_oneapi_env()` to `build_env_setup.py` to source Intel oneAPI environment and set build flags - Always build small wheel for XPU, following the same practice as CUDA - Add XPU RPATH handling in `repair_wheel.py` (following CUDA pattern — runtime libs from pypi packages) - XPU wheels are now retagged to `manylinux_2_28_x86_64` - Delete `build_xpu.sh` cpu-s390x continues to flow through `build_common.sh` unchanged. Pull Request resolved: pytorch#182942 Approved by: https://github.com/atalman
## Summary Port the XPU manylinux build from the legacy bash scripts (`build_xpu.sh` + `build_common.sh`) to the Python pipeline (`build_env_setup.py` + `build_install_deps.py` + `build_wheel.py` + `repair_wheel.py`), following the same pattern as pytorch#182409 (CUDA/CPU) and pytorch#182696 (ROCm). - Add `XPU_BUILD_ENV` and `source_oneapi_env()` to `build_env_setup.py` to source Intel oneAPI environment and set build flags - Always build small wheel for XPU, following the same practice as CUDA - Add XPU RPATH handling in `repair_wheel.py` (following CUDA pattern — runtime libs from pypi packages) - XPU wheels are now retagged to `manylinux_2_28_x86_64` - Delete `build_xpu.sh` cpu-s390x continues to flow through `build_common.sh` unchanged. Pull Request resolved: pytorch#182942 Approved by: https://github.com/atalman
## Summary Port the XPU manylinux build from the legacy bash scripts (`build_xpu.sh` + `build_common.sh`) to the Python pipeline (`build_env_setup.py` + `build_install_deps.py` + `build_wheel.py` + `repair_wheel.py`), following the same pattern as pytorch#182409 (CUDA/CPU) and pytorch#182696 (ROCm). - Add `XPU_BUILD_ENV` and `source_oneapi_env()` to `build_env_setup.py` to source Intel oneAPI environment and set build flags - Always build small wheel for XPU, following the same practice as CUDA - Add XPU RPATH handling in `repair_wheel.py` (following CUDA pattern — runtime libs from pypi packages) - XPU wheels are now retagged to `manylinux_2_28_x86_64` - Delete `build_xpu.sh` cpu-s390x continues to flow through `build_common.sh` unchanged. Pull Request resolved: pytorch#182942 Approved by: https://github.com/atalman
## Summary Port the XPU manylinux build from the legacy bash scripts (`build_xpu.sh` + `build_common.sh`) to the Python pipeline (`build_env_setup.py` + `build_install_deps.py` + `build_wheel.py` + `repair_wheel.py`), following the same pattern as pytorch#182409 (CUDA/CPU) and pytorch#182696 (ROCm). - Add `XPU_BUILD_ENV` and `source_oneapi_env()` to `build_env_setup.py` to source Intel oneAPI environment and set build flags - Always build small wheel for XPU, following the same practice as CUDA - Add XPU RPATH handling in `repair_wheel.py` (following CUDA pattern — runtime libs from pypi packages) - XPU wheels are now retagged to `manylinux_2_28_x86_64` - Delete `build_xpu.sh` cpu-s390x continues to flow through `build_common.sh` unchanged. Pull Request resolved: pytorch#182942 Approved by: https://github.com/atalman
Summary
Port the XPU manylinux build from the legacy bash scripts (
build_xpu.sh+build_common.sh) to the Python pipeline (build_env_setup.py+build_install_deps.py+build_wheel.py+repair_wheel.py), following the same pattern as #182409 (CUDA/CPU) and #182696 (ROCm).XPU_BUILD_ENVandsource_oneapi_env()tobuild_env_setup.pyto source Intel oneAPI environment and set build flagsrepair_wheel.py(following CUDA pattern — runtime libs from pypi packages)manylinux_2_28_x86_64build_xpu.shcpu-s390x continues to flow through
build_common.shunchanged.cc @atalman