Add stream_loads and stream_stores scheduling directives#9207
Open
alexreinking wants to merge 4 commits into
Open
Add stream_loads and stream_stores scheduling directives#9207alexreinking wants to merge 4 commits into
alexreinking wants to merge 4 commits into
Conversation
Member
Author
|
This implementation was super straightforward, but also super messy. It would be nice if we had an annotations system so that places that just forward those annotations don't need to be updated for every new feature. |
abadams
reviewed
Jul 14, 2026
abadams
reviewed
Jul 14, 2026
mcourteaux
reviewed
Jul 14, 2026
mcourteaux
reviewed
Jul 14, 2026
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9207 +/- ##
=======================================
Coverage ? 69.76%
=======================================
Files ? 255
Lines ? 78828
Branches ? 18843
=======================================
Hits ? 54997
Misses ? 18267
Partials ? 5564 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
alexreinking
force-pushed
the
alexreinking/non-temporal
branch
from
July 15, 2026 19:25
e0d2142 to
4fe8903
Compare
alexreinking
commented
Jul 15, 2026
alexreinking
force-pushed
the
alexreinking/non-temporal
branch
from
July 15, 2026 19:40
d16165a to
9d1398d
Compare
Co-authored-by: GPT 5.6 Sol <noreply@openai.com> Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
alexreinking
force-pushed
the
alexreinking/non-temporal
branch
from
July 16, 2026 02:52
538dbc8 to
057fec5
Compare
abadams
reviewed
Jul 16, 2026
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.
Implements the
stream_loadsandstream_storesdirectives as proposed in #9206.stream_loads- ensure that loads this stage makes are streamed. It has two modes.stream_loads()-- stream all direct loads after inlining, excluding self-loads.g.stream_loads({f1, ..., fN})-- stream loads from the named funcs after inlining. Namingghere is auser_error.stream_stores- ensure that stores to this func are streamed on a per-stage basis. A stage can have this specialization only if all of its RVars are pure (meaning that no two stores can alias). If any stage-specialization requests streaming, a fence is placed after the specialization block. This is vacuously true for pure funcs, RDom-less updates, and stages without specializations.This fully recovers performance of
memcpyon my Apple M3.Fixes #9206
Checklist