port the trampoline_scheduler from stdexec to cudax::execution - #6894
Merged
ericniebler merged 1 commit intoDec 10, 2025
Merged
Conversation
Contributor
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Contributor
Author
|
/ok to test db9400a |
Contributor
Author
|
/ok to test 3a29488 |
This comment has been minimized.
This comment has been minimized.
Contributor
Author
|
/ok to test aca9bdc |
This comment has been minimized.
This comment has been minimized.
ericniebler
force-pushed
the
cudax-execution-trampoline-scheduler
branch
from
December 9, 2025 02:03
aca9bdc to
f557102
Compare
Contributor
Author
|
/ok to test f557102 |
This comment has been minimized.
This comment has been minimized.
ericniebler
force-pushed
the
cudax-execution-trampoline-scheduler
branch
from
December 9, 2025 02:37
f557102 to
7cde7e8
Compare
Contributor
Author
|
/ok to test 7cde7e8 |
Contributor
🥳 CI Workflow Results🟩 Finished in 21m 30s: Pass: 100%/43 | Total: 5h 29m | Max: 21m 18s | Hits: 86%/19401See results here. |
miscco
approved these changes
Dec 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
the
trampoline_scheduleris basically like theinline_scheduler, except that it detects deep recursion caused by too many consecutive synchronous completions, and then unwinds the stack.trampoline_scheduleris necessary before we can have any repeating algorithms in cudax::execution. for an as-yet hypotheticalrepeatalgorithm,sync_wait(repeat(just())would blow the stack. butsync_wait(repeat(on(trampoline_scheduler{}, just())))would run forever and never blow the stack.once
trampoline_schedulerlands, i will add arepeat_nalgorithm, and then finally i will be able to port georgii's excellentmaxwellexample to cudax::execution.Checklist