From 7e32d5cef9b84f892ca4d920f0da42db31fe6b29 Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Tue, 11 Apr 2023 11:47:06 -0600 Subject: [PATCH] make comparable_cast KOKKOS_INLINE_FUNCTION --- common/src/KokkosKernels_ComparableCast.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/KokkosKernels_ComparableCast.hpp b/common/src/KokkosKernels_ComparableCast.hpp index a0ac4d8c06..8d04ba28fe 100644 --- a/common/src/KokkosKernels_ComparableCast.hpp +++ b/common/src/KokkosKernels_ComparableCast.hpp @@ -44,7 +44,7 @@ namespace Impl { value is not representable. */ template -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 && std::is_floating_point_v) { if constexpr (sizeof(T) >= sizeof(A)) {