NVIDIA / NVIDIA/cccl

Statically assert that `CCCL_C_EXPERIMENTAL` corresponds to the correct launcher factory

Open
#4,869 0 comments 0 reactions 1 assignee Claimed by @bernhardmgruber View on GitHub
Dominant language
C++
Stars
2.5k
Forks
486
Avg merge
2d 6h
Merged PRs (30d)
295

Description

When CUB is compiled from CCCL C, `CCCL_C_EXPERIMENTAL` is defined and a few code paths are changed accordingly. This goes along with instantiating CCCL C using a different launcher factory. There is an implicit assumption in CUB dispatchers, that the launcher and macro are in sync. We should add a static assertion verifying this, so users don't try to enable `CCCL_C_EXPERIMENTAL` themselves without also using the appropriate launcher.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.