Skip to content

Commit

Permalink
Stokhos: Add missing KOKKOS_INLINE_FUNCTION to fix build errors on HIP
Browse files Browse the repository at this point in the history
For issue #11877
  • Loading branch information
etphipp committed Jun 5, 2023
1 parent c3b1a94 commit 5393fd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/stokhos/src/sacado/kokkos/pce/Sacado_UQ_PCE_Imp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,7 @@ max(const typename PCE<Storage>::value_type& a,
}

template <typename Storage>
KOKKOS_INLINE_FUNCTION
PCE<Storage>
max(const PCE<Storage>& a,
const typename PCE<Storage>::value_type& b)
Expand Down Expand Up @@ -1545,6 +1546,7 @@ operator >> (std::istream& is, PCE<Storage>& a)
}

template <typename Storage>
KOKKOS_INLINE_FUNCTION
void
CG_divide(const PCE<Storage>& a, const PCE<Storage>& b, PCE<Storage>& c) {
typedef typename PCE<Storage>::ordinal_type ordinal_type;
Expand Down

0 comments on commit 5393fd0

Please sign in to comment.