Repository navigation
Env-based API for CUB part 2/3 - #4876
Conversation
🟩 CI finished in 1h 49m: Pass: 100%/187 | Total: 2d 01h | Avg: 15m 50s | Max: 1h 39m | Hits: 88%/293431
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| CCCL Packaging | |
| +/- | libcu++ |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| +/- | CCCL Packaging |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| +/- | stdpar |
| +/- | python |
| +/- | CCCL C Parallel Library |
| +/- | Catch2Helper |
🏃 Runner counts (total jobs: 187)
| # | Runner |
|---|---|
| 129 | linux-amd64-cpu16 |
| 15 | windows-amd64-cpu16 |
| 12 | linux-arm64-cpu16 |
| 12 | linux-amd64-gpu-rtxa6000-latest-1 |
| 11 | linux-amd64-gpu-rtx2080-latest-1 |
| 5 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
| _CCCL_REQUIRES(_CUDA_STD_EXEC::__queryable_with<_Env, get_requirements_t>) | ||
| [[nodiscard]] _CCCL_TRIVIAL_API constexpr auto operator()(const _Env& __env) const noexcept | ||
| { | ||
| static_assert(noexcept(__env.query(*this)), ""); |
There was a problem hiding this comment.
@miscco couldn't older GCCs fail to compile these due to it's prolems with noexcept(...)?
🟩 CI finished in 1h 36m: Pass: 100%/187 | Total: 1d 10h | Avg: 11m 10s | Max: 46m 03s | Hits: 95%/293431
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| CCCL Packaging | |
| +/- | libcu++ |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| +/- | CCCL Packaging |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| +/- | stdpar |
| +/- | python |
| +/- | CCCL C Parallel Library |
| +/- | Catch2Helper |
🏃 Runner counts (total jobs: 187)
| # | Runner |
|---|---|
| 129 | linux-amd64-cpu16 |
| 15 | windows-amd64-cpu16 |
| 12 | linux-arm64-cpu16 |
| 12 | linux-amd64-gpu-rtxa6000-latest-1 |
| 11 | linux-amd64-gpu-rtx2080-latest-1 |
| 5 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
| # define _LIBCUDACXX_BEGIN_NAMESPACE_EXECUTION _LIBCUDACXX_PROLOGUE_INCLUDE_CHECK() namespace cuda::std::execution { inline namespace _LIBCUDACXX_ABI_NAMESPACE { | ||
| # define _LIBCUDACXX_END_NAMESPACE_EXECUTION } } _LIBCUDACXX_PROLOGUE_INCLUDE_CHECK() | ||
|
|
||
| # define _LIBCUDACXX_BEGIN_NAMESPACE_CUDA_EXECUTION _LIBCUDACXX_PROLOGUE_INCLUDE_CHECK() namespace cuda { namespace execution { inline namespace _LIBCUDACXX_ABI_NAMESPACE { |
There was a problem hiding this comment.
Regarding the namespace execution, is the functionality here related or an extension of std::execution? If not, maybe we should consider a different namespace.
There was a problem hiding this comment.
Conceptually, functionality in cuda::execution is affecting execution of the algorithms, so I don't see a better namespace name for it. Besides that, it's something I can see being used with execution policies and environments from cuda::std::execution, seems related enough.
🟩 CI finished in 3h 02m: Pass: 100%/187 | Total: 1d 09h | Avg: 10m 52s | Max: 43m 32s | Hits: 96%/293431
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| CCCL Packaging | |
| +/- | libcu++ |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| +/- | CCCL Packaging |
| +/- | libcu++ |
| +/- | CUB |
| +/- | Thrust |
| +/- | CUDA Experimental |
| +/- | stdpar |
| +/- | python |
| +/- | CCCL C Parallel Library |
| +/- | Catch2Helper |
🏃 Runner counts (total jobs: 187)
| # | Runner |
|---|---|
| 129 | linux-amd64-cpu16 |
| 15 | windows-amd64-cpu16 |
| 12 | linux-arm64-cpu16 |
| 12 | linux-amd64-gpu-rtxa6000-latest-1 |
| 11 | linux-amd64-gpu-rtx2080-latest-1 |
| 5 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
|
Since all the queries are hidden and there are no algorithms using new interfaces, I'm merging this PR to unblock #4877. If there are any concerns on the interface, feel free to file an issue and address as a follow-up PR. |
| namespace determinism | ||
| { | ||
|
|
||
| struct __get_determinism_t; |
There was a problem hiding this comment.
@gevtushenko [late-review-question] - why do we need to forward declare __get_determinism_t? I don't see it using __determinism_holder_t in its definition below in line L#65. Couldn't we just fully define get_determinism_t first and then define determinism_holder_t below?
There was a problem hiding this comment.
It's likely a leftover
Description
This PR adds new queries to support env-based API in CUB:
cuda::execution::require- way for user to provide functional requirementscuda::execution::__get_requirements- way for implementation to query functional requirementscuda::execution::__tune- way for user to provide performance tuning parameters (not public yet)cuda::execution::__get_tuning- way for implementation to query tuningscuda::execution::determinism::get_determinism- way for implementation to query determinism requirementscuda::execution::determinism::- way for user to provide determinism requirements (should be passed as part ofcuda::execution::require(...)*::gpu_to_gpu- requirement for an implementation to provide same results across different GPUs*::run_to_run- requirement for an implementation to provide same results across executions on the same GPU*::not_guaranteed- relaxed requirement allowing non-deterministic executions.Guarantees are left outside of the scope untill we have a use case for them.
Checklist