Skip to content

Add build option guards to EnvVarForwarding.cmake - #180245

Closed
zklaus wants to merge 36 commits into
gh/zklaus/51/basefrom
gh/zklaus/51/head
Closed

zklaus wants to merge 36 commits into
gh/zklaus/51/basefrom
gh/zklaus/51/head

Conversation

@zklaus

@zklaus zklaus commented Apr 13, 2026 •

Copy link
Copy Markdown
Collaborator

Stack from ghstack (oldest at bottom):

Several env-var-driven build options were only handled in setup.py
with no CMake equivalent. Add guards so they work consistently
regardless of the build frontend:

  • MAX_JOBS → CMAKE_BUILD_PARALLEL_LEVEL
  • BUILD_PYTHON_ONLY → BUILD_LIBTORCHLESS
  • USE_NIGHTLY fatal error (requires setup.py)
  • BUILD_LIBTORCH_WHL / BUILD_PYTHON_ONLY conflict check

Co-Generated with Claude Code

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Apr 13, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@pytorch-bot

pytorch-bot Bot commented Apr 13, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/180245

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 1 Pending, 53 Unrelated Failures, 66 Unclassified Failures

As of commit be945e7 with merge base da74fec (image):

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:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

UNSTABLE - The following jobs are marked as unstable, possibly due to flakiness on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

zklaus added a commit to zklaus/pytorch that referenced this pull request Apr 13, 2026
Several env-var-driven build options were only handled in setup.py
with no CMake equivalent. Add guards so they work consistently
regardless of the build frontend:
- MAX_JOBS → CMAKE_BUILD_PARALLEL_LEVEL
- BUILD_PYTHON_ONLY → BUILD_LIBTORCHLESS
- USE_NIGHTLY fatal error (requires setup.py)
- BUILD_LIBTORCH_WHL / BUILD_PYTHON_ONLY conflict check

Co-Generated with [Claude Code](https://claude.com/claude-code)


ghstack-source-id: 13a6bdb
Pull-Request: pytorch#180245
@zklaus
zklaus marked this pull request as ready for review April 14, 2026 18:32
@zklaus zklaus added ciflow/binaries Trigger all binary build and upload jobs on the PR release notes: releng release notes category labels Apr 14, 2026
zklaus added a commit to zklaus/pytorch that referenced this pull request Apr 15, 2026
Several env-var-driven build options were only handled in setup.py
with no CMake equivalent. Add guards so they work consistently
regardless of the build frontend:
- MAX_JOBS → CMAKE_BUILD_PARALLEL_LEVEL
- BUILD_PYTHON_ONLY → BUILD_LIBTORCHLESS
- USE_NIGHTLY fatal error (requires setup.py)
- BUILD_LIBTORCH_WHL / BUILD_PYTHON_ONLY conflict check

Co-Generated with [Claude Code](https://claude.com/claude-code)


ghstack-source-id: 13a6bdb
Pull-Request: pytorch#180245
zklaus added a commit to zklaus/pytorch that referenced this pull request Apr 17, 2026
Several env-var-driven build options were only handled in setup.py
with no CMake equivalent. Add guards so they work consistently
regardless of the build frontend:
- MAX_JOBS → CMAKE_BUILD_PARALLEL_LEVEL
- BUILD_PYTHON_ONLY → BUILD_LIBTORCHLESS
- USE_NIGHTLY fatal error (requires setup.py)
- BUILD_LIBTORCH_WHL / BUILD_PYTHON_ONLY conflict check

Co-Generated with [Claude Code](https://claude.com/claude-code)


ghstack-source-id: 13a6bdb
Pull-Request: pytorch#180245
zklaus added 2 commits April 20, 2026 13:41
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
zklaus added a commit to zklaus/pytorch that referenced this pull request May 6, 2026
Several env-var-driven build options were only handled in setup.py
with no CMake equivalent. Add guards so they work consistently
regardless of the build frontend:
- MAX_JOBS → CMAKE_BUILD_PARALLEL_LEVEL
- BUILD_PYTHON_ONLY → BUILD_LIBTORCHLESS
- USE_NIGHTLY fatal error (requires setup.py)
- BUILD_LIBTORCH_WHL / BUILD_PYTHON_ONLY conflict check

Co-Generated with [Claude Code](https://claude.com/claude-code)


ghstack-source-id: 721bfc6
Pull-Request: pytorch#180245
zklaus added 15 commits May 6, 2026 11:39
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
zklaus added a commit to zklaus/pytorch that referenced this pull request May 12, 2026
Several env-var-driven build options were only handled in setup.py
with no CMake equivalent. Add guards so they work consistently
regardless of the build frontend:
- MAX_JOBS → CMAKE_BUILD_PARALLEL_LEVEL
- BUILD_PYTHON_ONLY → BUILD_LIBTORCHLESS
- USE_NIGHTLY fatal error (requires setup.py)
- BUILD_LIBTORCH_WHL / BUILD_PYTHON_ONLY conflict check

Co-Generated with [Claude Code](https://claude.com/claude-code)


ghstack-source-id: 7fdf3b3
Pull-Request: pytorch#180245
zklaus added 3 commits May 12, 2026 18:33
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
zklaus added a commit to zklaus/pytorch that referenced this pull request May 13, 2026
Several env-var-driven build options were only handled in setup.py
with no CMake equivalent. Add guards so they work consistently
regardless of the build frontend:
- MAX_JOBS → CMAKE_BUILD_PARALLEL_LEVEL
- BUILD_PYTHON_ONLY → BUILD_LIBTORCHLESS
- USE_NIGHTLY fatal error (requires setup.py)
- BUILD_LIBTORCH_WHL / BUILD_PYTHON_ONLY conflict check

Co-Generated with [Claude Code](https://claude.com/claude-code)


ghstack-source-id: dcc45a4
Pull-Request: pytorch#180245
[ghstack-poisoned]
zklaus added 3 commits May 14, 2026 13:38
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@zklaus

zklaus commented May 17, 2026

Copy link
Copy Markdown
Collaborator Author

Now absorbed in #180247.

@zklaus zklaus closed this May 17, 2026
@github-actions
github-actions Bot deleted the gh/zklaus/51/head branch June 17, 2026 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/binaries Trigger all binary build and upload jobs on the PR open source release notes: releng release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants