Skip to content

Commit

Permalink
Merge pull request #105 from nicoleavans/osu-barrier
Browse files Browse the repository at this point in the history
Remove Unnecessary Barriers in OSU Latency Tests
  • Loading branch information
cwpearson authored Jul 8, 2024
2 parents 5c14fd2 + 7dd9d6b commit 3de7bdb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion perf_tests/test_osu_latency_isendirecv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ void osu_latency_Kokkos_Comm_isendirecv(benchmark::State &, MPI_Comm comm, const

template <typename View>
void osu_latency_MPI_isendirecv(benchmark::State &, MPI_Comm comm, int rank, const View &v) {
MPI_Barrier(comm);
MPI_Request sendreq, recvreq;
if (rank == 0) {
MPI_Irecv(v.data(), v.size(), KokkosComm::Impl::mpi_type<typename View::value_type>(), 1, 0, comm, &recvreq);
Expand Down
1 change: 0 additions & 1 deletion perf_tests/test_osu_latency_sendrecv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ void osu_latency_Kokkos_Comm_sendrecv(benchmark::State &, MPI_Comm comm, const S

template <typename View>
void osu_latency_MPI_sendrecv(benchmark::State &, MPI_Comm comm, int rank, const View &v) {
MPI_Barrier(comm);
if (rank == 0) {
MPI_Recv(v.data(), v.size(), KokkosComm::Impl::mpi_type<typename View::value_type>(), 1, 0, comm,
MPI_STATUS_IGNORE);
Expand Down

0 comments on commit 3de7bdb

Please sign in to comment.