Skip to content

Commit

Permalink
Feature: Support Kokkos Kernels v4 (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Apr 24, 2024
1 parent b535435 commit 1d61bdd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -24,6 +24,8 @@ Added CMake infrastructure that enables externally maintained addons/plugins
to be *optionally* built with SUNDIALS. See the [Contributing Guide](./CONTRIBUTING.md)
for more details.

Added support for Kokkos Kernels v4.

## Changes to SUNDIALS in release v7.0.0

### Major Feature
Expand Down
2 changes: 2 additions & 0 deletions doc/shared/RecentChanges.rst
Expand Up @@ -22,3 +22,5 @@ with the Cray Fortran compiler.

Fixed a bug where :c:func:`MRIStepEvolve` would not handle a recoverable error
produced from evolving the inner stepper.

Added support for Kokkos Kernels v4.
4 changes: 4 additions & 0 deletions include/sunmatrix/sunmatrix_kokkosdense.hpp
Expand Up @@ -210,7 +210,11 @@ SUNErrCode SUNMatMatvec_KokkosDense(SUNMatrix A, N_Vector x, N_Vector y)
Kokkos::subview(y_data,
Kokkos::pair<size_type, size_type>(idx * rows,
(idx + 1) * rows));
#if KOKKOSKERNELS_VERSION_MAJOR > 3
KokkosBlas::TeamVectorGemv<
#else
KokkosBatched::TeamVectorGemv<
#endif
member_type, KokkosBatched::Trans::NoTranspose,
KokkosBatched::Algo::Gemv::Unblocked>::invoke(team_member,
SUN_RCONST(1.0),
Expand Down

0 comments on commit 1d61bdd

Please sign in to comment.