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 math function long double overload on the host side #4712

Merged

Conversation

dalg24
Copy link
Member

@dalg24 dalg24 commented Jan 25, 2022

The use of long double is currently not supported in device code which led us to only provide long double overloads of the math functions when none of the GPU backend was enabled. In reality, we can and probably should define them on the host side regardless of how Kokkos was configured.
For reference, we had considered doing this when we initially implemented the math functions but decided we would deal with it later as needed. I am proposing to do it now because I realized KokkosKernels will need it when refactoring their arithmetic traits.

@dalg24 dalg24 marked this pull request as ready for review January 25, 2022 15:26
@dalg24 dalg24 added this to In progress in Kokkos Release 3.6 via automation Jan 25, 2022
@dalg24 dalg24 moved this from In progress to Awaiting Feedback in Kokkos Release 3.6 Jan 25, 2022
Copy link
Contributor

@e10harvey e10harvey left a comment

Choose a reason for hiding this comment

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

Thanks, @dalg24 ! Will you be adding overloads for Kokkos::complex<T> to these math functions?

@crtrott crtrott merged commit 1685261 into kokkos:develop Jan 27, 2022
Kokkos Release 3.6 automation moved this from Awaiting Feedback to Done Jan 27, 2022
@dalg24
Copy link
Member Author

dalg24 commented Jan 27, 2022

Will you be adding overloads for Kokkos::complex<T> to these math functions?

Do you mean Kokkos::complex<long double>? I don't think so. It would take much more than that to enable, basically you'd need a full specialization of Kokkos::complex w/o the __host__ __device__ annotations.

@dalg24 dalg24 deleted the math_functions_host_side_long_double_overloads branch January 27, 2022 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants