Skip to content

Commit

Permalink
fix: remove unused headers and inline non-templated overload
Browse files Browse the repository at this point in the history
Missing `inline` keyword on non-templated version of `barrier` made
multiple definitions of `barrier` in user code.
  • Loading branch information
dssgabriel committed Jun 19, 2024
1 parent 2a0ed34 commit 33f8687
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/impl/KokkosComm_barrier.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@

#include <Kokkos_Core.hpp>

#include "KokkosComm_pack_traits.hpp"
#include "KokkosComm_traits.hpp"
#include "KokkosComm_concepts.hpp"

// impl
#include "KokkosComm_include_mpi.hpp"
#include "KokkosComm_types.hpp"

namespace KokkosComm::Impl {

void barrier(MPI_Comm comm) {
inline void barrier(MPI_Comm comm) {
Kokkos::Tools::pushRegion("KokkosComm::Impl::barrier");
MPI_Barrier(comm);
Kokkos::Tools::popRegion();
Expand All @@ -39,4 +37,5 @@ void barrier(const ExecSpace &space, MPI_Comm comm) {
space.fence("KokkosComm::Impl::barrier");
barrier(comm);
}

} // namespace KokkosComm::Impl

0 comments on commit 33f8687

Please sign in to comment.