diff --git a/packages/tpetra/core/src/Tpetra_RowMatrixTransposer_def.hpp b/packages/tpetra/core/src/Tpetra_RowMatrixTransposer_def.hpp index feb28b0c03bf..5bda4129faf8 100644 --- a/packages/tpetra/core/src/Tpetra_RowMatrixTransposer_def.hpp +++ b/packages/tpetra/core/src/Tpetra_RowMatrixTransposer_def.hpp @@ -49,6 +49,7 @@ #include "Teuchos_ParameterList.hpp" #include "Teuchos_TimeMonitor.hpp" #include "KokkosKernels_SparseUtils.hpp" +#include "KokkosKernels_Sorting.hpp" namespace Tpetra { @@ -184,7 +185,7 @@ createTransposeLocal (const Teuchos::RCP& 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.