diff --git a/packages/intrepid2/src/Projection/Intrepid2_ProjectionTools.hpp b/packages/intrepid2/src/Projection/Intrepid2_ProjectionTools.hpp index 79664a65f089..c7485e4a3563 100644 --- a/packages/intrepid2/src/Projection/Intrepid2_ProjectionTools.hpp +++ b/packages/intrepid2/src/Projection/Intrepid2_ProjectionTools.hpp @@ -50,7 +50,11 @@ #ifdef HAVE_INTREPID2_KOKKOSKERNELS #include "KokkosBatched_QR_Serial_Internal.hpp" #include "KokkosBatched_ApplyQ_Serial_Internal.hpp" +#if KOKKOS_VERSION >= 40599 +#include "KokkosBatched_Trsv_Decl.hpp" +#else #include "KokkosBatched_Trsv_Serial_Internal.hpp" +#endif #include "KokkosBatched_Util.hpp" #endif @@ -545,11 +549,15 @@ class ProjectionTools { w.data()); // R0^{-1} b -> b +#if KOKKOS_VERSION >= 40599 + KokkosBatched::SerialTrsv::invoke(1.0, A0, b); +#else KokkosBatched::SerialTrsvInternalUpper::invoke(false, A0.extent(0), 1.0, A0.data(), A0.stride_0(), A0.stride_1(), b.data(), b.stride_0()); +#endif //scattering b into the basis coefficients for(ordinal_type i=0; i b +#if KOKKOS_VERSION >= 40599 + KokkosBatched::SerialTrsv::invoke(1.0, A, b); +#else KokkosBatched::SerialTrsvInternalUpper::invoke(false, A.extent(0), 1.0, A.data(), A.stride_0(), A.stride_1(), b.data(), b.stride_0()); +#endif //scattering b into the basis coefficients for(ordinal_type i=0; i