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

Add overloads of hypot math function that take 3 arguments #5341

Merged
merged 4 commits into from
Aug 17, 2022

Conversation

dalg24
Copy link
Member

@dalg24 dalg24 commented Aug 16, 2022

Requested on Slack
See #4767

Drive by changes more C++17

@dalg24
Copy link
Member Author

dalg24 commented Aug 16, 2022

It turns out neither CUDA, HIP, nor SYCL provide the three-argument version of hypot so I added a fallback implementation

} \
inline bool FUNC(long double x) { \
inline long double FUNC(long double x, long double y, long double z) { \
using std::FUNC; \
Copy link
Member

Choose a reason for hiding this comment

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

Why don't you use KOKKOS_IMPL_MATH_FUNCTIONS_NAMESPACE here?

Copy link
Member Author

Choose a reason for hiding this comment

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

For long double on the host-side we use the math functions from the standard library

@dalg24
Copy link
Member Author

dalg24 commented Aug 17, 2022

Considering the queue in the CI I will not rerun

@dalg24 dalg24 merged commit b82c258 into kokkos:develop Aug 17, 2022
@dalg24 dalg24 deleted the ternary_hypot branch August 17, 2022 20:18
@dalg24 dalg24 mentioned this pull request Sep 7, 2022
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

3 participants