Repository navigation
[CUDAX] Adjust some of the async_buffer interfaces - #4585
Merged
Merged
Conversation
Contributor
🟩 CI finished in 20m 39s: Pass: 100%/26 | Total: 2h 27m | Avg: 5m 41s | Max: 13m 51s | Hits: 96%/14642
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 26)
| # | Runner |
|---|---|
| 17 | linux-amd64-cpu16 |
| 4 | linux-arm64-cpu16 |
| 2 | windows-amd64-cpu16 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
| 1 | linux-amd64-gpu-h100-latest-1 |
Contributor
🟩 CI finished in 20m 24s: Pass: 100%/26 | Total: 2h 30m | Avg: 5m 47s | Max: 12m 58s | Hits: 96%/14642
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 26)
| # | Runner |
|---|---|
| 17 | linux-amd64-cpu16 |
| 4 | linux-arm64-cpu16 |
| 2 | windows-amd64-cpu16 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
| 1 | linux-amd64-gpu-h100-latest-1 |
miscco
approved these changes
Apr 30, 2025
miscco
left a comment
Contributor
There was a problem hiding this comment.
Still not convinced the destroy method is actually something we want but it does not hurt
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 makes the following changes to async_buffer:
getis removed as pure performance trapoperator==is removed, because its an inherently synchronous operation that needs an answer to return, whileasync_bufferis designed to represent data that is operated on asynchronously. We can think about some other way to expose comparison in the future.syncis removed andget_stream().sync()should be used instead.make_async_bufferto make the stream argument first. This is in preparation for graphs APIs, wheremake_async_bufferwas designed to be applicable for both streams and graphs based on the first argument. Other overloads not taking an explicit streams are removed as not useful, constructor can serve that purpose.destroyfunction that allows to submit the deallocation into the stream before the object is otherwise destroyed allowing to avoid some potential false dependencies with operations inserted into the stream later on. It is possible that destroy should take an optional stream to destroy on a different stream, but I wasn't sure how to differentiate between version that does and does not wait on the stored stream before destruction. I decided that the pair ofswitch_stream[_unsynchronized]+destroyis better at disambiguating that.destroycalled on it useful for something.