Skip to content

Commit

Permalink
make comparable_cast KOKKOS_INLINE_FUNCTION
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Apr 11, 2023
1 parent 66ffeef commit 7e32d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/KokkosKernels_ComparableCast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace Impl {
value is not representable.
*/
template <typename T, typename A>
constexpr auto comparable_cast(const A &a) {
KOKKOS_INLINE_FUNCTION constexpr auto comparable_cast(const A &a) {
// both floating point, use the larger type
if constexpr (std::is_floating_point_v<T> && std::is_floating_point_v<A>) {
if constexpr (sizeof(T) >= sizeof(A)) {
Expand Down

0 comments on commit 7e32d5c

Please sign in to comment.