Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA]: Deprecate and potentially remove CUB macros #3902

Open
1 task done
fbusato opened this issue Feb 21, 2025 · 0 comments
Open
1 task done

[FEA]: Deprecate and potentially remove CUB macros #3902

fbusato opened this issue Feb 21, 2025 · 0 comments
Assignees
Labels
feature request New feature or request.

Comments

@fbusato
Copy link
Contributor

fbusato commented Feb 21, 2025

Is this a duplicate?

Area

CUB

Is your feature request related to a problem? Please describe.

CUB still uses macros to define constant values, e.g. CUB_WARP_THREADS(0). This is widely considered a bad practice and bug-prone. Now with C++17 we have the opportunity to replace them with inline constexpr variables.

Describe the solution you'd like

Replace CUB macros used as constants with inline constexpr variables.
My preferred solution would be to remove the original macros. On the other hand, this is considered a breaking change, even though I don't expect users to directly adopt CUB macros in their code.

Describe alternatives you've considered

Replace and deprecate CUB macros

Additional context

No response

@fbusato fbusato added the feature request New feature or request. label Feb 21, 2025
@github-project-automation github-project-automation bot moved this to Todo in CCCL Feb 21, 2025
@fbusato fbusato self-assigned this Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request.
Projects
Status: Todo
Development

No branches or pull requests

1 participant