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

adding KOKKOS_FORCEINLINE_FUNCTION to constbitset constructors #4296

Merged
merged 2 commits into from
Sep 7, 2021

Conversation

matt-stack
Copy link
Contributor

Adding KOKKOS_FORCEDINLINE_FUNCTION to the ConstBitset constructors to allow for use on device and to match the bitset. Used in #4135

@dalg24-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@matt-stack
Copy link
Contributor Author

And to operator=

@crtrott
Copy link
Member

crtrott commented Sep 6, 2021

OK to test.

Copy link
Member

@dalg24 dalg24 left a comment

Choose a reason for hiding this comment

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

Why KOKKOS_FORCEINLINE_FUNCTION and not just KOKKOS_FUNCTION?

@matt-stack
Copy link
Contributor Author

@dalg24 I was looking to keep consistent between constbitset and bitset, and bitset had defined their copy constructors as inline, so I wanted to use define as inline, and figured to force the inline for optimization. But I have no strong opinion as long as device is in the macros somewhere ;) Would you rather me change it to use KOKKOS_FUNCTION or KOKKOS_INLINE_FUNCTION? I understand the argument that it might not be best to force inline and risk breaking someones code

@dalg24
Copy link
Member

dalg24 commented Sep 7, 2021

Please use KOKKOS_FUNCTION

@crtrott crtrott merged commit b9f768f into kokkos:develop Sep 7, 2021
@matt-stack matt-stack deleted the small_feature branch September 7, 2021 20:18
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