Skip to content

Use C++20 concepts where it improves readability - #179286

Closed
lakshayg wants to merge 7 commits into
pytorch:mainfrom
lakshayg:concepts
Closed

lakshayg wants to merge 7 commits into
pytorch:mainfrom
lakshayg:concepts

Conversation

@lakshayg

@lakshayg lakshayg commented Apr 3, 2026 •

Copy link
Copy Markdown
Collaborator

C++20 introduces concepts which can simplify some template code. In this PR, I have changed some instances of enable_if with concepts where it's not hard to verify correctness. #176662

cc @EikanWang @jgong5

@pytorch-bot pytorch-bot Bot added NNC release notes: jit release notes category labels Apr 3, 2026
@pytorch-bot

pytorch-bot Bot commented Apr 3, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit 855b529 with merge base 27db730 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@lakshayg lakshayg self-assigned this Apr 3, 2026
@lakshayg lakshayg added ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category labels Apr 3, 2026
Comment thread aten/src/ATen/native/Math.h Resolved
@lakshayg
lakshayg force-pushed the concepts branch 5 times, most recently from 92f78a9 to 90b8500 Compare April 13, 2026 22:12
@cyyever

cyyever commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot merge -r

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Successfully rebased concepts onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout concepts && git pull --rebase)

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

@cyyever

cyyever commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: trunk / linux-jammy-rocm-py3.10-mi355 / test (default, 1, 6, linux.rocm.gpu.gfx950.1)

Details for Dev Infra team Raised by workflow job

@lakshayg

Copy link
Copy Markdown
Collaborator Author

@pytorchmergebot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@lakshayg

lakshayg commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchmergebot rebase

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Successfully rebased concepts onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout concepts && git pull --rebase)

@lakshayg

Copy link
Copy Markdown
Collaborator Author

@pytorchmergebot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@lakshayg
lakshayg deleted the concepts branch August 12, 2026 18:24
@atalman

atalman commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

@pytorchmergebot revert -c nosignal -m "breaks nightly"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@atalman

atalman commented Aug 13, 2026 •

Copy link
Copy Markdown
Collaborator

hi @lakshayg this broken all nightly linux x86 and aarch64 builds. Please see: https://github.com/pytorch/pytorch/actions/runs/31651508303/job/94319305652#step:8:314

I believe smoke test need to be modified, before relanding this PR

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@lakshayg your PR has been successfully reverted.

@lakshayg

Copy link
Copy Markdown
Collaborator Author

hi @lakshayg this broken all nightly linux x86 and aarch64 builds. Please see: https://github.com/pytorch/pytorch/actions/runs/31651508303/job/94319305652#step:8:314

I believe smoke test need to be modified, before relanding this PR

@atalman Is there some way I can trigger these tests on the PR to make it's not reverted again.

@lakshayg

Copy link
Copy Markdown
Collaborator Author

@atalman gentle ping!

@lakshayg

lakshayg commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

@atalman would you be able to take a look?

@lakshayg

Copy link
Copy Markdown
Collaborator Author

@atalman checking again 🙏

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@lakshayg

Copy link
Copy Markdown
Collaborator Author

Closing because we probably don't support this in all the environments we build in and the CI keeps failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/binaries Trigger all binary build and upload jobs on the PR ciflow/inductor ciflow/nightly Trigger all jobs we run nightly (nightly.yml) ciflow/trunk Trigger trunk jobs on your pull request ciflow/vllm Merged NNC no-runner-experiments Bypass Meta/LF runner determinator open source release notes: jit release notes category Reverted Stale topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants