Offload slice support#153411
Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom Apr 21, 2026
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
Member
ZuseZ4
reviewed
Apr 15, 2026
| builder.store(geps[i as usize], gep2, Align::EIGHT); | ||
|
|
||
| if matches!(metadata[i as usize].payload_size, OffloadSize::Dynamic) { | ||
| if matches!(metadata[i as usize].payload_size, OffloadSize::Dynamic(_)) { |
Member
There was a problem hiding this comment.
Try if let OffloadSize::Dynamic(dynamic_size: DynamicSize) = metadata[i as usize].payload_size {
and update the get_runtime_size below, so we don't have more unnecessary matches.
ZuseZ4
reviewed
Apr 15, 2026
| pub enum OffloadSize { | ||
| Dynamic, | ||
| Static(u64), | ||
| Dynamic(DynamicSize), |
Member
There was a problem hiding this comment.
I'd probably for now directly add Slice under OffloadSize, at least until we handle more dynamic ones.
Collaborator
|
Member
|
Thanks! r=me with green CI |
Contributor
Contributor
Author
|
@bors r=ZuseZ4 |
Contributor
rust-bors Bot
pushed a commit
that referenced
this pull request
Apr 21, 2026
Rollup of 5 pull requests Successful merges: - #153411 (Offload slice support) - #154557 (Make E0284 generic argument suggestions more explicit) - #154933 (Suggest removing `&` when awaiting a reference to a future) - #155524 (Fix LLVM offload install docs to use semicolon-separated CMake lists) - #155568 (Update books)
rust-timer
added a commit
that referenced
this pull request
Apr 21, 2026
github-actions Bot
pushed a commit
to rust-lang/rustc-dev-guide
that referenced
this pull request
Apr 21, 2026
Rollup of 5 pull requests Successful merges: - rust-lang/rust#153411 (Offload slice support) - rust-lang/rust#154557 (Make E0284 generic argument suggestions more explicit) - rust-lang/rust#154933 (Suggest removing `&` when awaiting a reference to a future) - rust-lang/rust#155524 (Fix LLVM offload install docs to use semicolon-separated CMake lists) - rust-lang/rust#155568 (Update books)
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.
This PR allows offload to support slice type arguments.
NOTE: this is built on top of #152283r? @ZuseZ4