Repository navigation
c.parallel: reuse CUB agent policies for reduce - #4286
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. |
|
/ok to test |
ddcad45 to
ef37272
Compare
|
/ok to test |
9fa63bb to
d45e3b3
Compare
|
/ok to test |
π¨ CI finished in 3h 38m: Pass: 97%/166 | Total: 3d 05h | Avg: 28m 04s | Max: 1h 27m | Hits: 77%/250349
|
| 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: 166)
| # | Runner |
|---|---|
| 113 | linux-amd64-cpu16 |
| 15 | windows-amd64-cpu16 |
| 12 | linux-amd64-gpu-rtx2080-latest-1 |
| 12 | linux-arm64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 5 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
d45e3b3 to
a61ec5f
Compare
|
/ok to test |
π© CI finished in 11h 52m: Pass: 100%/166 | Total: 2d 22h | Avg: 25m 18s | Max: 1h 17m | Hits: 82%/254024
|
| 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: 166)
| # | Runner |
|---|---|
| 113 | linux-amd64-cpu16 |
| 15 | windows-amd64-cpu16 |
| 12 | linux-amd64-gpu-rtx2080-latest-1 |
| 12 | linux-arm64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 5 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
|
/ok to test |
π© CI finished in 1h 55m: Pass: 100%/174 | Total: 3d 18h | Avg: 31m 11s | Max: 1h 37m | Hits: 70%/268375
|
| 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: 174)
| # | Runner |
|---|---|
| 121 | linux-amd64-cpu16 |
| 15 | windows-amd64-cpu16 |
| 12 | linux-amd64-gpu-rtx2080-latest-1 |
| 12 | linux-arm64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 5 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
|
Addition PTX compilation adds about 50% to the run-time of === This branch Use: === Base Use: Perhaps there are ways to reuse compilation artifacts from run-time policy query in building of the final source? |
I don't believe there is any such way; those two compilation passes use separate sources and are compiled with separate compiler flags, by necessity. |
π¨ CI finished in 2h 00m: Pass: 82%/178 | Total: 3d 08h | Avg: 27m 16s | Max: 1h 36m | Hits: 73%/239846
|
| 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: 178)
| # | Runner |
|---|---|
| 123 | linux-amd64-cpu16 |
| 15 | windows-amd64-cpu16 |
| 14 | linux-amd64-gpu-rtx2080-latest-1 |
| 12 | linux-arm64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 5 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
π¨ CI finished in 57m 36s: Pass: 91%/178 | Total: 1d 10h | Avg: 11m 28s | Max: 55m 27s | Hits: 89%/260640
|
| 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: 178)
| # | Runner |
|---|---|
| 123 | linux-amd64-cpu16 |
| 15 | windows-amd64-cpu16 |
| 14 | linux-amd64-gpu-rtx2080-latest-1 |
| 12 | linux-arm64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 5 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
π© CI finished in 2h 23m: Pass: 100%/178 | Total: 3d 20h | Avg: 31m 14s | Max: 1h 29m | Hits: 63%/282366
|
| 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: 178)
| # | Runner |
|---|---|
| 123 | linux-amd64-cpu16 |
| 15 | windows-amd64-cpu16 |
| 14 | linux-amd64-gpu-rtx2080-latest-1 |
| 12 | linux-arm64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 5 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
| template <typename T> | ||
| concept a_value = is_value<T>::value; | ||
|
|
||
| template <a_value auto Nested> |
There was a problem hiding this comment.
Question, for the sake of my own education: why is auto necessary here? Removing it causes compilation error so it is necessary, but I would like to understand why. What type deduction is compiler performing here? Is this to support both types and literals as template parameters?
There was a problem hiding this comment.
a_value is a concept, and a_value auto means "deduce the type of this, but error out if it doesn't satisfy a_value". This doesn't support types as template parameters; just values of types that satisfy a_value.
| build->cubin = (void*) result.data.release(); | ||
| build->cubin_size = result.size; | ||
| build->accumulator_size = accum_t.size; | ||
| build->runtime_policy = new reduce::reduce_runtime_tuning_policy{st_policy, reduce_policy}; |
There was a problem hiding this comment.
Perhaps this allocation should be performed before result.data.release() is called to avoid memory leak on exception from new.
| "{0}\n" | ||
| "__global__ void ptx_json_emitting_kernel()\n" | ||
| "{{\n" | ||
| " auto wrapped = {1};\n" | ||
| " ptx_json::id<ptx_json::string(\"{2}\")>() = wrapped.EncodedPolicy();\n" | ||
| "}}\n", |
There was a problem hiding this comment.
Nit: Perhaps use static constexpr raw string for the template?
| ) | ||
| set_target_properties(${target_name} PROPERTIES | ||
| CUDA_PTX_COMPILATION ON | ||
| CUDA_ARCHITECTURES 90 |
There was a problem hiding this comment.
Nit: Perhaps a comment why 90 is needed and that it does not matter that compute capability of the GPU where test is being run is lower since the generated PTX is not going to be used for execution.
I am not sure where 90 is the lowest required.
alliepiper
left a comment
There was a problem hiding this comment.
CMake side of things LGTM
Description
This PR introduces certain levels of black magic into CUB to allow for transmitting arbitrary information from NVRTC translation units into the user of NVRTC, and also code to use said black magic to reuse native CUB policies for
DeviceReduce.Resolves #3997
Checklist