Repository navigation
Fix race condition in block_reduce_raking. - #2699
Merged
Merged
Conversation
`temp_storage.raking_grid` and `temp_storage.warp_storage` are aliased. We need to sync between using shmem to compute partials via `RakingReduction` and `WarpReduce`-ing those partial. Fixes NVIDIA#1902.
Contributor
🟩 CI finished in 1h 58m: Pass: 100%/222 | Total: 6d 15h | Avg: 43m 01s | Max: 1h 16m | Hits: 66%/16113
|
| 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: 222)
| # | Runner |
|---|---|
| 184 | linux-amd64-cpu16 |
| 16 | linux-arm64-cpu16 |
| 13 | linux-amd64-gpu-v100-latest-1 |
| 9 | windows-amd64-cpu16 |
miscco
approved these changes
Nov 5, 2024
alliepiper
enabled auto-merge (squash)
November 5, 2024 15:33
bernhardmgruber
approved these changes
Nov 5, 2024
|
|
||
| // sync before re-using shmem (warp_storage/raking_grid are aliased) | ||
| static_assert(RAKING_THREADS <= CUB_PTX_WARP_THREADS, "RAKING_THREADS must be <= warp size."); | ||
| unsigned int mask = static_cast<unsigned int>((1ull << RAKING_THREADS) - 1); |
Contributor
There was a problem hiding this comment.
Suggestion: this looks like a compile-time known value:
Suggested change
| unsigned int mask = static_cast<unsigned int>((1ull << RAKING_THREADS) - 1); | |
| constexpr unsigned int mask = static_cast<unsigned int>((1ull << RAKING_THREADS) - 1); |
Contributor
🟩 CI finished in 1h 46m: Pass: 100%/222 | Total: 6d 04h | Avg: 40m 01s | Max: 1h 14m | Hits: 79%/16113
|
| 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: 222)
| # | Runner |
|---|---|
| 184 | linux-amd64-cpu16 |
| 16 | linux-arm64-cpu16 |
| 13 | linux-amd64-gpu-v100-latest-1 |
| 9 | windows-amd64-cpu16 |
pciolkosz
pushed a commit
to pciolkosz/cccl
that referenced
this pull request
Nov 6, 2024
`temp_storage.raking_grid` and `temp_storage.warp_storage` are aliased. We need to sync between using shmem to compute partials via `RakingReduction` and `WarpReduce`-ing those partial. Fixes NVIDIA#1902.
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.
temp_storage.raking_gridandtemp_storage.warp_storageare aliased.We need to sync between using shmem to compute partials via
RakingReductionandWarpReduce-ing those partial.Fixes #1902.