Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/181450
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: ✅ No FailuresAs of commit 6315c60 with merge base 22790c5 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 7 jobs have failed, first few of them are: linux-s390x-binary-manywheel / manywheel-py3_12-cpu-s390x-build / build, linux-s390x-binary-manywheel / manywheel-py3_14t-cpu-s390x-build / build, linux-s390x-binary-manywheel / manywheel-py3_14-cpu-s390x-build / build, linux-s390x-binary-manywheel / manywheel-py3_10-cpu-s390x-build / build, linux-s390x-binary-manywheel / manywheel-py3_13-cpu-s390x-build / build Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
ghstack-source-id: 0648199 Pull-Request: pytorch#181450
Adds `cmake/FileMirroring.cmake`, which copies source files into the installed packages so they are included in the wheel. This replaces three blocks of Python code removed from `setup.py`: - **`mirror_files_into_torchgen()`** — copies ATen native function definitions (`native_functions.yaml`, `tags.yaml`), ATen templates, and autograd files into `torchgen/packaged/` so torchgen can be used standalone. - **`mirror_inductor_external_kernels()`** — copies the CuTeDSL grouped GEMM kernel from the cutlass submodule into `torch/_inductor/kernel/vendored_templates/`. - **Symlink-replacement copies** — copies `_utils_internal.py` into `tools/shared/` and valgrind headers into `torch/utils/benchmark/`, replacing the symlink creation that setuptools handled. Uses `SKBUILD_PLATLIB_DIR` (set by scikit-build-core) to install into the site-packages root, falling back to `PROJECT_SOURCE_DIR` for setuptools builds where `CMAKE_INSTALL_PREFIX` already points at the source tree. Co-Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: #177642 Approved by: https://github.com/atalman ghstack dependencies: #181450
Adds `cmake/FileMirroring.cmake`, which copies source files into the installed packages so they are included in the wheel. This replaces three blocks of Python code removed from `setup.py`: - **`mirror_files_into_torchgen()`** — copies ATen native function definitions (`native_functions.yaml`, `tags.yaml`), ATen templates, and autograd files into `torchgen/packaged/` so torchgen can be used standalone. - **`mirror_inductor_external_kernels()`** — copies the CuTeDSL grouped GEMM kernel from the cutlass submodule into `torch/_inductor/kernel/vendored_templates/`. - **Symlink-replacement copies** — copies `_utils_internal.py` into `tools/shared/` and valgrind headers into `torch/utils/benchmark/`, replacing the symlink creation that setuptools handled. Uses `SKBUILD_PLATLIB_DIR` (set by scikit-build-core) to install into the site-packages root, falling back to `PROJECT_SOURCE_DIR` for setuptools builds where `CMAKE_INSTALL_PREFIX` already points at the source tree. Co-Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: pytorch#177642 Approved by: https://github.com/atalman ghstack dependencies: pytorch#181450
This PR is part of the work to replace the old setuptools based build system frontend with a modern and easier to maintain scikit-build-core one described in pytorch#157807. It was previously part of pytorch#177641, had received approval there and was split off by request to allow more internal testing. Adds NCCL checkout from the pinned version to `cmake/PreBuildSteps.cmake`, replacing the equivalent logic in `tools/build_pytorch_libs.py`'s NCCL clone block. The NCCL checkout uses `FetchContent` to clone from the tag pinned in `.ci/docker/ci_commit_pins/nccl*.txt`, with support for CUDA-version-specific pin files. It is skipped when `USE_DISTRIBUTED`, `USE_CUDA`, or `USE_NCCL` is explicitly off, or when the checkout already exists. The corresponding Python code is removed from `setup.py` and simplified in `tools/build_pytorch_libs.py`. The module checks for existing state so it is safe to include unconditionally under both setuptools and scikit-build-core. Co-Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: pytorch#181450 Approved by: https://github.com/atalman
Adds `cmake/FileMirroring.cmake`, which copies source files into the installed packages so they are included in the wheel. This replaces three blocks of Python code removed from `setup.py`: - **`mirror_files_into_torchgen()`** — copies ATen native function definitions (`native_functions.yaml`, `tags.yaml`), ATen templates, and autograd files into `torchgen/packaged/` so torchgen can be used standalone. - **`mirror_inductor_external_kernels()`** — copies the CuTeDSL grouped GEMM kernel from the cutlass submodule into `torch/_inductor/kernel/vendored_templates/`. - **Symlink-replacement copies** — copies `_utils_internal.py` into `tools/shared/` and valgrind headers into `torch/utils/benchmark/`, replacing the symlink creation that setuptools handled. Uses `SKBUILD_PLATLIB_DIR` (set by scikit-build-core) to install into the site-packages root, falling back to `PROJECT_SOURCE_DIR` for setuptools builds where `CMAKE_INSTALL_PREFIX` already points at the source tree. Co-Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: pytorch#177642 Approved by: https://github.com/atalman ghstack dependencies: pytorch#181450
This PR is part of the work to replace the old setuptools based build system frontend with a modern and easier to maintain scikit-build-core one described in pytorch#157807. It was previously part of pytorch#177641, had received approval there and was split off by request to allow more internal testing. Adds NCCL checkout from the pinned version to `cmake/PreBuildSteps.cmake`, replacing the equivalent logic in `tools/build_pytorch_libs.py`'s NCCL clone block. The NCCL checkout uses `FetchContent` to clone from the tag pinned in `.ci/docker/ci_commit_pins/nccl*.txt`, with support for CUDA-version-specific pin files. It is skipped when `USE_DISTRIBUTED`, `USE_CUDA`, or `USE_NCCL` is explicitly off, or when the checkout already exists. The corresponding Python code is removed from `setup.py` and simplified in `tools/build_pytorch_libs.py`. The module checks for existing state so it is safe to include unconditionally under both setuptools and scikit-build-core. Co-Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: pytorch#181450 Approved by: https://github.com/atalman
Adds `cmake/FileMirroring.cmake`, which copies source files into the installed packages so they are included in the wheel. This replaces three blocks of Python code removed from `setup.py`: - **`mirror_files_into_torchgen()`** — copies ATen native function definitions (`native_functions.yaml`, `tags.yaml`), ATen templates, and autograd files into `torchgen/packaged/` so torchgen can be used standalone. - **`mirror_inductor_external_kernels()`** — copies the CuTeDSL grouped GEMM kernel from the cutlass submodule into `torch/_inductor/kernel/vendored_templates/`. - **Symlink-replacement copies** — copies `_utils_internal.py` into `tools/shared/` and valgrind headers into `torch/utils/benchmark/`, replacing the symlink creation that setuptools handled. Uses `SKBUILD_PLATLIB_DIR` (set by scikit-build-core) to install into the site-packages root, falling back to `PROJECT_SOURCE_DIR` for setuptools builds where `CMAKE_INSTALL_PREFIX` already points at the source tree. Co-Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: pytorch#177642 Approved by: https://github.com/atalman ghstack dependencies: pytorch#181450
This PR is part of the work to replace the old setuptools based build system frontend with a modern and easier to maintain scikit-build-core one described in pytorch#157807. It was previously part of pytorch#177641, had received approval there and was split off by request to allow more internal testing. Adds NCCL checkout from the pinned version to `cmake/PreBuildSteps.cmake`, replacing the equivalent logic in `tools/build_pytorch_libs.py`'s NCCL clone block. The NCCL checkout uses `FetchContent` to clone from the tag pinned in `.ci/docker/ci_commit_pins/nccl*.txt`, with support for CUDA-version-specific pin files. It is skipped when `USE_DISTRIBUTED`, `USE_CUDA`, or `USE_NCCL` is explicitly off, or when the checkout already exists. The corresponding Python code is removed from `setup.py` and simplified in `tools/build_pytorch_libs.py`. The module checks for existing state so it is safe to include unconditionally under both setuptools and scikit-build-core. Co-Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: pytorch#181450 Approved by: https://github.com/atalman
Adds `cmake/FileMirroring.cmake`, which copies source files into the installed packages so they are included in the wheel. This replaces three blocks of Python code removed from `setup.py`: - **`mirror_files_into_torchgen()`** — copies ATen native function definitions (`native_functions.yaml`, `tags.yaml`), ATen templates, and autograd files into `torchgen/packaged/` so torchgen can be used standalone. - **`mirror_inductor_external_kernels()`** — copies the CuTeDSL grouped GEMM kernel from the cutlass submodule into `torch/_inductor/kernel/vendored_templates/`. - **Symlink-replacement copies** — copies `_utils_internal.py` into `tools/shared/` and valgrind headers into `torch/utils/benchmark/`, replacing the symlink creation that setuptools handled. Uses `SKBUILD_PLATLIB_DIR` (set by scikit-build-core) to install into the site-packages root, falling back to `PROJECT_SOURCE_DIR` for setuptools builds where `CMAKE_INSTALL_PREFIX` already points at the source tree. Co-Generated with [Claude Code](https://claude.com/claude-code) Pull Request resolved: pytorch#177642 Approved by: https://github.com/atalman ghstack dependencies: pytorch#181450
Stack from ghstack (oldest at bottom):
This PR is part of the work to replace the old setuptools based build system frontend with a modern and easier to maintain scikit-build-core one described in #157807.
It was previously part of #177641, had received approval there and was split off by request to allow more internal testing.
Adds NCCL checkout from the pinned version to
cmake/PreBuildSteps.cmake, replacing the equivalent logic intools/build_pytorch_libs.py's NCCL clone block.The NCCL checkout uses
FetchContentto clone from the tag pinned in.ci/docker/ci_commit_pins/nccl*.txt, with support for CUDA-version-specific pin files. It is skipped whenUSE_DISTRIBUTED,USE_CUDA, orUSE_NCCLis explicitly off, or when the checkout already exists.The corresponding Python code is removed from
setup.pyand simplified intools/build_pytorch_libs.py. The module checks for existing state so it is safe to include unconditionally under both setuptools and scikit-build-core.Co-Generated with Claude Code