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

Fix NVCC warnings #6483

Merged
merged 2 commits into from
Oct 5, 2023
Merged

Fix NVCC warnings #6483

merged 2 commits into from
Oct 5, 2023

Conversation

masterleinad
Copy link
Contributor

This pull request fixes a bunch of warnings we are currently seeing in our CI, particularly for calling __host__ functions from __host__ __device__ functions and "missing return type".

  • It seems that the if constexpr (use_std_sort) in BinSort didn't entirely suppress the warning, at least not for @stanmoore1.
  • nvcc allows using builtin_unreachable from 11.3.0 on which helps with warnings of type "missing return type".
  • We shouldn't use std functions such as std::min in KOKKOS_FUNCTIONs.

@masterleinad masterleinad marked this pull request as ready for review October 4, 2023 20:46
core/src/Kokkos_Array.hpp Outdated Show resolved Hide resolved
@crtrott crtrott merged commit 890148e into kokkos:develop Oct 5, 2023
27 of 28 checks passed
@masterleinad masterleinad mentioned this pull request Oct 11, 2023
@stanmoore1
Copy link
Contributor

I finally got a chance to check this PR and it fixes all the warnings I was seeing, thanks @masterleinad!

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

5 participants