-
Notifications
You must be signed in to change notification settings - Fork 5
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
Apply to_array helper #171
base: main
Are you sure you want to change the base?
Conversation
Remove unnecessary variadic integers Co-authored-by: Damien L-G <dalg24+github@gmail.com>
We may need a newer version of Kokkos for nicer tests. Should we update Kokkos to 4.4 and update docs accordingly? |
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.
We can try
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.
LGTM
// [TO DO] Need to update Kokkos version for compile time test | ||
// GTEST_SKIP() << "Skipping ToArray::rvalue compile time test"; | ||
// static_assert(KokkosFFT::Impl::to_array(std::array{1, 2}) == | ||
// Kokkos::Array{1, 2}); |
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.
If you want, you can already implement the test using the comparison operator inside ifdef
based on the version of Kokkos ?
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.
If you are fine, I would like to keep it in comments since we do not test that in CI for the moment. Though, I am pretty sure it works at least with Kokkos v.4.4.1
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.
Yes I am ok with that. One question though, how do we keep track that we will need to update this snippet when we increase the minimum version of Kokkos ?
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 about tracking in an issue?
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.
I am not really confident on remembering that there is actually an issue about this when we bump the minimum version. We can try.
Improves #170
This PR aims at introducing
to_array
helper which is used inTranspose
functions.For the compile time testing, we need a newer version of Kokkos.