Repository navigation
[CUDAX] Separate non-async pinned memory resource into legacy_pinned_memory_resource - #4179
Merged
Merged
Conversation
Contributor
π© CI finished in 43m 11s: Pass: 100%/22 | Total: 5h 17m | Avg: 14m 25s | Max: 19m 44s | Hits: 48%/11852
|
| 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: 22)
| # | Runner |
|---|---|
| 13 | 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
Mar 19, 2025
| namespace cuda::experimental | ||
| { | ||
|
|
||
| //! @brief legacy_pinned_memory_resource uses `cudaMallocHost` / `cudaFreeHost` for allocation / deallocation. |
Contributor
There was a problem hiding this comment.
We should add a sentence that this is deprecated for CTKs that support asynchronous pinned memory and explain what a user should use
Contributor
π© CI finished in 1h 26m: Pass: 100%/22 | Total: 2h 03m | Avg: 5m 36s | Max: 12m 26s | Hits: 98%/11852
|
| 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: 22)
| # | Runner |
|---|---|
| 13 | 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 |
davebayer
pushed a commit
to davebayer/cccl
that referenced
this pull request
Apr 7, 2025
β¦memory_resource (NVIDIA#4179) * Separate non-async pinned resource into legacy version * Remove pinned resource else branch * adjust tests * Make async_buffer_add example 12.6+ * Adjust comparison * Adjust the resource name in comments/exception messages * Fix formatting * Add a note about legacy resource future deprecation and replacement
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.
After changes to make
pinned_memory_resourceuse memory pools on supported CUDA versions, there was an else branch in the ifdef to still usecudaMallocHost/cudaFreeon older CUDA versions.This PR separates that else branch into a
legacy_pinned_memory_resourcetype, that is supposed to be long term back-up memory resource in cases compatibility with older CUDA version is needed.Because async_buffer_add example requires an async pinned resource, compilation of that example is now disabled for older CUDA versions