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

Remove KOKKOS_THREAD_LOCAL #5064

Merged
merged 3 commits into from
May 27, 2022

Conversation

masterleinad
Copy link
Contributor

There doesn't really seem any need to define this macro when we can use thread_local instead.

@crtrott
Copy link
Member

crtrott commented May 26, 2022

How sure are we that no one downstream uses that? Maybe deprecate for 3.7 and then remove (could define it to KOKKOS_THREAD_LOCAL = thread_local?

Copy link
Member

@crtrott crtrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we deprecate? Its a kinda public name?

@dalg24
Copy link
Member

dalg24 commented May 26, 2022

OK with what Christian suggest.
Keep when deprecated code is enabled. I suspect you might be able to slap the deprecated attribute in the front when warning are enabled.

@masterleinad
Copy link
Contributor Author

How sure are we that no one downstream uses that? Maybe deprecate for 3.7 and then remove (could define it to KOKKOS_THREAD_LOCAL = thread_local?

It's not used in Trilonos at least but I kept it now with deprecated code on.

core/src/Kokkos_Macros.hpp Outdated Show resolved Hide resolved
Co-authored-by: Damien L-G <dalg24+github@gmail.com>
@dalg24
Copy link
Member

dalg24 commented May 27, 2022

Not sure what is going on with Jenkins but that commit was built successfully so I am going to merge as is
https://cloud.cees.ornl.gov/jenkins-ci/blue/organizations/jenkins/Kokkos/detail/Kokkos/8864/pipeline

@dalg24 dalg24 dismissed crtrott’s stale review May 27, 2022 13:14

Changes requested were implemented

@dalg24 dalg24 merged commit 76fd10f into kokkos:develop May 27, 2022
@masterleinad masterleinad deleted the remove_kokkos_thread_local branch May 27, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants