Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions external-builds/pytorch/build_prod_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -1277,13 +1277,10 @@ def do_build_pytorch(
pytorch_pyproject_text = (pytorch_dir / "pyproject.toml").read_text()
if "scikit_build_core.build" in pytorch_pyproject_text:
# scikit-build-core applies Git ignore rules when constructing the wheel,
# dropping generated, gitignored runtime files. This workaround can be
# removed once these fixes are merged and commonly available:
# https://github.com/pytorch/pytorch/pull/191625
# https://github.com/pytorch/pytorch/pull/191629
build_command.append(
"-Cwheel.force-include.torch/_rocm_init.py=torch/_rocm_init.py"
)
# dropping generated, gitignored runtime files. _rocm_init.py now ships
# via an upstream install() (torch/CMakeLists.txt), so only these Windows
# DLL force-includes remain until their upstream PRs land:
# https://github.com/pytorch/pytorch/pull/191629 (libomp140)
if is_windows:
build_command.append(
"-Cwheel.force-include.torch/lib/libomp140.x86_64.dll="
Expand Down
Loading