-
Notifications
You must be signed in to change notification settings - Fork 407
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
Promote mathematical functions to Kokkos
namespace
#4791
Conversation
28df30b
to
44ccd4f
Compare
#ifdef KOKKOS_ENABLE_DEPRECATED_CODE_3 | ||
|
||
KOKKOS_DEPRECATED KOKKOS_INLINE_FUNCTION int log2(unsigned i) { | ||
return Impl::int_log2(i); | ||
} | ||
|
||
#endif |
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't keep it if we proceed and promote the math functions.
ba20362
to
7810dee
Compare
7810dee
to
4525310
Compare
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.
KOKKOS_IMPL_MATH_FUNCTIONS_DEFINED_IF_DEPRECATED_CODE_ENABLED
makes more sense to me than KOKKOS_IMPL_MATH_FUNCTIONS_DEFINED_IF_DEPRECATE_CODE_ENABLED
but I don't think it matters much.
@@ -47,6 +47,7 @@ | |||
|
|||
#include <Kokkos_Macros.hpp> | |||
#include <cmath> | |||
#include <cstdlib> |
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.
Why did you add this include?
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.
abs
overloads that takes integral types. Amy had this issue on OS X earlier this week and Christian and I had to add it when trying to resolve issues with the Fujitsu compiler. Also #4727 (comment).
Required to avoid ambiguities later with Kokkos::complex
…hen deprecated code is enabled
6ac05e1
to
d779ae9
Compare
Move all math functions from
Kokkos::Experimental::
toKokkos::
namespace.Provide using-declaration in the
Kokkos::Experimental::
namespace when deprecated code is enabled to ease the transition.Deprecated function
log2(unsigned) -> int
is being removed.