Skip to content

Commit

Permalink
intrepid2: compatibility update with kokkos-kernels
Browse files Browse the repository at this point in the history
Address issue kokkos/kokkos-kernels#2456 (comment)

Co-authored-by: Yuuichi Asahi <[email protected]>
Signed-off-by: Nathan Ellingwood <[email protected]>
  • Loading branch information
ndellingwood and Yuuichi Asahi committed Dec 14, 2024
1 parent 436ce06 commit 565e392
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,11 +545,16 @@ class ProjectionTools {
w.data());

// R0^{-1} b -> b
#if KOKKOS_VERSION >= 40599
KokkosBatched::SerialTrsv<KokkosBatched::Uplo::Upper, KokkosBatched::Trans::NoTranspose,
KokkosBatched::Diag::NonUnit, KokkosBatched::Algo::Trsv::Unblocked>::invoke(1.0, A0, b);
#else
KokkosBatched::SerialTrsvInternalUpper<KokkosBatched::Algo::Trsv::Unblocked>::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<n; ++i){
Expand Down

0 comments on commit 565e392

Please sign in to comment.