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

Unify handling of dialects #1200

Merged
merged 5 commits into from
Dec 13, 2023
Merged

Unify handling of dialects #1200

merged 5 commits into from
Dec 13, 2023

Conversation

miscco
Copy link
Collaborator

@miscco miscco commented Dec 11, 2023

We currently have 3 hacky ways of detecting standard versions. To unify this we define a single _CCCL_STD_VER macro that works everywhere.

For backward compatability we move libcu++ to a four digit counter and also keep the publicly available CUB_CPP_DIALECT and THRUST_CPP_DIALECT for user consumption.

That said, we should never ever rely on the user to define those and always use our internal detection logic. Anything else is just plain broken.

There is something to to be said for using _CCCL_CPP_DIALECT instead of _CCCL_STD_VER However the later is 4 letters shorter 🤷‍♂️

@miscco miscco force-pushed the unify_dialect branch 3 times, most recently from 3df2656 to fe8b31c Compare December 12, 2023 13:33
We currently have 3 hacky ways of detecting standard versions. To unify this we define a single `_CCCL_STD_VER` macro that works everywhere.

For backward compatability we move libcu++ to a four digit counter and also keep the publicly available `CUB_CPP_DIALECT` and `THRUST_CPP_DIALECT` for user consumption.

That said, we should never ever rely on the user to define those and always use our internal detection logic. Anything else is just plain broken.
@miscco miscco merged commit fddf2fe into NVIDIA:main Dec 13, 2023
537 checks passed
@miscco miscco deleted the unify_dialect branch December 13, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants