Skip to content

Commit

Permalink
Fixes to addSorted interface
Browse files Browse the repository at this point in the history
Add missing guards for KOKKOSKERNELS_VERSION
  • Loading branch information
ndellingwood committed Jan 24, 2024
1 parent 9444612 commit 2946371
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/tpetra/core/ext/TpetraExt_MatrixMatrix_decl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,9 @@ struct AddKernels
const row_ptrs_array_const& Browptrs,
const col_inds_array& Bcolinds,
const impl_scalar_type scalarB,
#if KOKKOSKERNELS_VERSION >= 40299
GlobalOrdinal numGlobalCols,
#endif
values_array& Cvals,
row_ptrs_array& Crowptrs,
col_inds_array& Ccolinds);
Expand Down
4 changes: 4 additions & 0 deletions packages/tpetra/core/ext/TpetraExt_MatrixMatrix_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,11 @@ add (const Scalar& alpha,
<< "Call AddKern::addSorted(...)" << std::endl;
std::cerr << os.str ();
}
#if KOKKOSKERNELS_VERSION >= 40299
AddKern::addSorted(Avals, Arowptrs, Acolinds, alpha, Bvals, Browptrs, Bcolinds, beta, Aprime->getGlobalNumCols(), vals, rowptrs, colinds);
#else
AddKern::addSorted(Avals, Arowptrs, Acolinds, alpha, Bvals, Browptrs, Bcolinds, beta, vals, rowptrs, colinds);
#endif
}
else
{
Expand Down

0 comments on commit 2946371

Please sign in to comment.