Repository navigation
Fix inconsistent usage of vsmem helper in c.parallel merge_sort and unique_by_key algorithms - #4090
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
🟨 CI finished in 1h 20m: Pass: 30%/93 | Total: 22h 40m | Avg: 14m 37s | Max: 1h 08m | Hits: 91%/45302
|
| 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: 93)
| # | Runner |
|---|---|
| 66 | linux-amd64-cpu16 |
| 9 | windows-amd64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 4 | linux-arm64-cpu16 |
| 3 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
|
I glanced through briefly. I'll look more later. One quick question: How much trouble would it be to add a test that fails without this fix? |
|
/ok to test |
|
/ok to test |
|
/ok to test |
| struct device_merge_sort_vsmem_helper {{ | ||
| template<typename ActivePolicyT, typename... Ts> | ||
| using MergeSortVSMemHelperT = cub::detail::merge_sort::VSMemHelper::MergeSortVSMemHelperT<ActivePolicyT, Ts...>; | ||
| }}; |
There was a problem hiding this comment.
important: the idea behind this indirection level was that it'd allow us to disable vsmem helper on the kernel end. Right now, host side on C parallel does something along the lines of: int BlockThreads(policy) { return policy.block_threads; }, in other words, it doesn't modify the block size in any way. But the cub::detail::merge_sort::VSMemHelper::MergeSortVSMemHelperT can modify the block size based on the key / value type sizes. We need another virtual shared memory helper in this string that does something like:
struct vsmem_helper
{
using policy_t = agent_policy_t;
// ...
};
🟨 CI finished in 1h 24m: Pass: 94%/93 | Total: 1d 15h | Avg: 25m 10s | Max: 1h 07m | Hits: 92%/130076
|
| 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: 93)
| # | Runner |
|---|---|
| 66 | linux-amd64-cpu16 |
| 9 | windows-amd64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 4 | linux-arm64-cpu16 |
| 3 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
|
/ok to test |
🟨 CI finished in 1h 18m: Pass: 96%/93 | Total: 1d 20h | Avg: 28m 44s | Max: 1h 14m | Hits: 90%/130236
|
| 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: 93)
| # | Runner |
|---|---|
| 66 | linux-amd64-cpu16 |
| 9 | windows-amd64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 4 | linux-arm64-cpu16 |
| 3 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
|
/ok to test |
🟨 CI finished in 1h 04m: Pass: 48%/93 | Total: 1d 14h | Avg: 24m 41s | Max: 1h 01m | Hits: 96%/73297
|
| 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: 93)
| # | Runner |
|---|---|
| 66 | linux-amd64-cpu16 |
| 9 | windows-amd64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 4 | linux-arm64-cpu16 |
| 3 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
🟩 CI finished in 19h 06m: Pass: 100%/93 | Total: 1d 16h | Avg: 26m 07s | Max: 1h 09m | Hits: 93%/133890
|
| 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: 93)
| # | Runner |
|---|---|
| 66 | linux-amd64-cpu16 |
| 9 | windows-amd64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 4 | linux-arm64-cpu16 |
| 3 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
@rwgk I added a test for |
|
One thing I noticed when I was experimenting with large types is that nvrtc compilation time increases signifcantly as we increase the size of the data type. So if you change |
|
No difference in sass for |
🟩 CI finished in 1h 39m: Pass: 100%/97 | Total: 2d 19h | Avg: 41m 39s | Max: 1h 17m | Hits: 56%/134011
|
| 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: 97)
| # | Runner |
|---|---|
| 68 | linux-amd64-cpu16 |
| 9 | windows-amd64-cpu16 |
| 6 | linux-arm64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 3 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
…nique_by_key algorithms (NVIDIA#4090) * Instantiate unique by key kernel with vsmem helper * Make VSMemHelper a template parameter of merge sort kernels * Add workaround for variadic templates for NVCC 12.0 * Instantiate merge sort kernel with vsmem helper * Fix SFINAE not selecting the correct c.parallel policy
Reverts some parts of NVIDIA#4090
Reverts some parts of NVIDIA#4090
Reverts some parts of NVIDIA#4090
This reverts some parts of NVIDIA#4090, not supporting vsmem in merge sort for CCCL.C Fixes: NVIDIA#7639
Description
Closes #4005
Checklist