From 31be65899841af53928451311658b8c5a7500831 Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Tue, 25 Jun 2024 08:09:07 -0600 Subject: [PATCH] spgemm: add profiling regions to native implementations (#2253) * spgemm: add profiling regions to native implementations * Add profiling region to KokkosSPGEMM::KokkosSPGEMM_symbolic --- sparse/impl/KokkosSparse_spgemm_impl_def.hpp | 2 ++ sparse/impl/KokkosSparse_spgemm_impl_kkmem.hpp | 2 ++ sparse/impl/KokkosSparse_spgemm_impl_seq.hpp | 5 +++++ sparse/impl/KokkosSparse_spgemm_impl_speed.hpp | 2 ++ 4 files changed, 11 insertions(+) diff --git a/sparse/impl/KokkosSparse_spgemm_impl_def.hpp b/sparse/impl/KokkosSparse_spgemm_impl_def.hpp index a420a81c90..54e4e228c8 100644 --- a/sparse/impl/KokkosSparse_spgemm_impl_def.hpp +++ b/sparse/impl/KokkosSparse_spgemm_impl_def.hpp @@ -59,6 +59,7 @@ void KokkosSPGEMM::KokkosSPGEMM_symbolic(c_row_view_t rowmapC_) { + Kokkos::Profiling::pushRegion("KokkosSparse::spgemm_symbolic[NATIVE]"); { if (KOKKOSKERNELS_VERBOSE) { std::cout << "SYMBOLIC PHASE" << std::endl; @@ -162,6 +163,7 @@ void KokkosSPGEMMget_spgemm_handle()->set_c_nnz(result_index); Kokkos::deep_copy(row_mapC, h_rmc); Kokkos::fence(); + Kokkos::Profiling::popRegion(); } template