Skip to content

Commit

Permalink
mpi: allgather: fix trait alias
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed May 17, 2024
1 parent 200ebae commit cd8f4ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/impl/KokkosComm_allgather.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ void allgather(const SendView &sv, const RecvView &rv, MPI_Comm comm) {
template <KokkosExecutionSpace ExecSpace, KokkosView SendView, KokkosView RecvView>
void allgather(const ExecSpace &space, const SendView &sv, const RecvView &rv, MPI_Comm comm) {
Kokkos::Tools::pushRegion("KokkosComm::Impl::allgather");
using ST = KokkosComm::Traits<SendView>;
using RT = KokkosComm::Traits<RecvView>;
using SPT = KokkosComm::PackTraits<SendView>;
using RPT = KokkosComm::PackTraits<RecvView>;

if (ST::needs_pack(sv) || RT::needs_pack(rv)) {
if (SPT::needs_pack(sv) || RPT::needs_pack(rv)) {
throw std::runtime_error("allgather for non-contiguous views not implemented");
} else {
space.fence(); // work in space may have been used to produce send view data
Expand Down

0 comments on commit cd8f4ff

Please sign in to comment.