-
Notifications
You must be signed in to change notification settings - Fork 60
Fix MySoA struct breaking CI tests #858
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
Conversation
dalg24
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What ROCm version were you using?
Co-authored-by: Damien L-G <[email protected]>
|
@dalg24 what's the advantage of using KOKKOS_DEFAULTED_FUNCTION? I did not know about this macro. |
|
Looks like that broke the OpenSUSE CI test. I'll revert back. |
This reverts commit a6e19d1.
In the past some toolchains would complain when host device annotations were missing on a defaulted default constructor or destructor, and other toolchains would raise errors if you had them. Kokkos picks a definition that works for the toolchain that is used. |
Defaulting the default constructor is better practice. We should rather look into these compiler warnings and figure out what is wrong with the class definition. |
|
It's a warning about an uninitialized value in |
Sure, and that uninitialized value is the |
The CI errors have been fixed by editing the struct
MySoAincore/src/unit_test/tstAoSoA.hpp:Adding the constructor fixes the Ubuntu/OpenSUSE warnings and adding
KOKKOS_INLINE_FUNCTIONfixes a "calling a host function on the device" error when building with HIP.