Skip to content

Commit

Permalink
tpetra: move sort_crs_matrix out of Impl namespace
Browse files Browse the repository at this point in the history
Compatibility change for kokkos-kernels, see kokkos/kokkos-kernels#932
  • Loading branch information
ndellingwood committed Jun 11, 2021
1 parent 7c4b0db commit 1a82361
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tpetra/core/src/Tpetra_RowMatrixTransposer_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include "Teuchos_ParameterList.hpp"
#include "Teuchos_TimeMonitor.hpp"
#include "KokkosKernels_SparseUtils.hpp"
#include "KokkosKernels_Sorting.hpp"

namespace Tpetra {

Expand Down Expand Up @@ -184,7 +185,7 @@ createTransposeLocal (const Teuchos::RCP<Teuchos::ParameterList>& params)
local_matrix_device_type lclMatrix = crsMatrix->getLocalMatrix ();
local_matrix_device_type lclTransposeMatrix = KokkosKernels::Impl::transpose_matrix(lclMatrix);
if (sort)
KokkosKernels::Impl::sort_crs_matrix(lclTransposeMatrix);
KokkosKernels::sort_crs_matrix(lclTransposeMatrix);

// Prebuild the importers and exporters the no-communication way,
// flipping the importers and exporters around.
Expand Down

0 comments on commit 1a82361

Please sign in to comment.