You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Host/Device Constexpr Warning in Vector Reduction Identities #513
Avoid CUDA Host/Device Constexpr Warning in Vector Reduction Identities
Problem
When building IPPL with CUDA on GH200, BareField tests emit warning #20013-D from the Kokkos::reduction_identity<ippl::Vector<T, Dim>> specialization in src/Field/BareField.hpp.
The warning is triggered by calling std::numeric_limits<T>::infinity() inside KOKKOS_FORCEINLINE_FUNCTION methods:
This matches Kokkos reduction semantics and keeps vector field reductions consistent with scalar field reductions. For float and double, Kokkos uses finite extrema (FLT_MAX, DBL_MAX) rather than infinities, which avoids the CUDA host/device constexpr warning.
Activity