Skip to content

Commit

Permalink
mpi: send profile region
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed May 15, 2024
1 parent 2e0586f commit 4b35d33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/impl/KokkosComm_send.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace KokkosComm::Impl {

template <KokkosView SendView>
void send(const SendView &sv, int dest, int tag, MPI_Comm comm) {
Kokkos::Tools::pushRegion("KokkosComm::Impl::send");
using KCT = typename KokkosComm::Traits<SendView>;

if (KCT::is_contiguous(sv)) {
Expand All @@ -36,6 +37,7 @@ void send(const SendView &sv, int dest, int tag, MPI_Comm comm) {
} else {
throw std::runtime_error("only contiguous views supported for low-level send");
}
Kokkos::Tools::popRegion();
}

template <CommMode SendMode = CommMode::Default, KokkosExecutionSpace ExecSpace, KokkosView SendView>
Expand Down

0 comments on commit 4b35d33

Please sign in to comment.