Use synchronize_optional for device-to-device copy in thrust::copy()#3149
Merged
miscco merged 1 commit intoNVIDIA:mainfrom Dec 13, 2024
Merged
Use synchronize_optional for device-to-device copy in thrust::copy()#3149miscco merged 1 commit intoNVIDIA:mainfrom
miscco merged 1 commit intoNVIDIA:mainfrom
Conversation
Contributor
Contributor
Author
|
If necessary, I have reproducer code and nsys traces that show the synchronize is removed from |
3 tasks
miscco
approved these changes
Dec 13, 2024
Contributor
|
/ok to test |
Contributor
🟩 CI finished in 1h 31m: Pass: 100%/94 | Total: 2d 14h | Avg: 39m 57s | Max: 1h 08m | Hits: 67%/12384
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| +/- | Thrust |
| CUDA Experimental | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| +/- | CUB |
| +/- | Thrust |
| CUDA Experimental | |
| +/- | python |
| +/- | CCCL C Parallel Library |
| +/- | Catch2Helper |
🏃 Runner counts (total jobs: 94)
| # | Runner |
|---|---|
| 70 | linux-amd64-cpu16 |
| 11 | linux-amd64-gpu-v100-latest-1 |
| 9 | windows-amd64-cpu16 |
| 4 | linux-arm64-cpu16 |
elstehle
approved these changes
Dec 13, 2024
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.
Description
Changes the call to
synchronize()for the target stream tosynchronize_optional()in thetrivial_copy_device_to_device()utility. This allows the caller to pass in athrust::cuda::par_nosyncpolicy without requiring a sync on the stream. The return value forthrust::copy()does not rely on the copy result but is simply an increment of the output iterator.Reference issue #1474 -- only handles device-to-device stream sync case.
For RAPIDS libcudf this results in an up to 2x performance improvement certain cases that use
thrust::copy().Checklist