Repository navigation
Conversation
Signed-off-by: Raul Estrada <raulestradaa@gmail.com>
uurl
requested review from
elibol,
kkraus14,
nihalpasham and
rparolin
as code owners
October 8, 2026 03:44
This branch has not been deployed
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.
Summary
Transplants NVlabs/cutile-rs#308 into NVIDIA/cuda-rust.
Adds safe, non-owning borrowed subviews of
DeviceBuffer<T>, enabling access to contiguous regions of device memory without transferring allocation ownership.Implements the host-side borrowed subviews requested in #968.
Typed launcher integration remains follow-up work.
Changes
DeviceSlice<'a, T>andDeviceSliceMut<'a, T>.Original PR: NVlabs/cutile-rs#308
Migration tracking issue: #1437
Testing
All checks passed:
cargo test -p cuda-core --lib— 50 passed.cargo test -p cuda-core --test simt_device_buffer— 16 passed.cargo test -p cuda-core --doc— 4 passed, 3 ignored.cargo clippy -p cuda-core --all-targets -- -D warnings— passed.cargo fmt --all -- --check— passed.git diff --check upstream/main...HEAD— passed.just -f cuda-oxide/Justfile check— passed.cargo oxide run vecadd— all 1024 elements correct.bash scripts/smoketest.sh -o '^vecadd$'— 1/1 passed.just -f cuda-oxide/Justfile checkpassescargo oxide run <example>passes, or smoketestChecklist
git commit -s)