Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some missing MPI boolean instantiations. #13795

Merged
merged 1 commit into from
May 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 36 additions & 0 deletions source/base/mpi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,42 @@ namespace Utilities

#ifndef DOXYGEN
// explicit instantiations

// booleans aren't in MPI_SCALARS
template bool
reduce(const bool &,
const MPI_Comm &,
const std::function<bool(const bool &, const bool &)> &,
const unsigned int);

template std::vector<bool>
reduce(const std::vector<bool> &,
const MPI_Comm &,
const std::function<std::vector<bool>(const std::vector<bool> &,
const std::vector<bool> &)> &,
const unsigned int);

template bool
all_reduce(const bool &,
const MPI_Comm &,
const std::function<bool(const bool &, const bool &)> &);

template std::vector<bool>
all_reduce(
const std::vector<bool> &,
const MPI_Comm &,
const std::function<std::vector<bool>(const std::vector<bool> &,
const std::vector<bool> &)> &);

// We need an explicit instantiation of this for the same reason as the
// other types described in mpi.inst.in
template void
internal::all_reduce<bool>(const MPI_Op &,
const ArrayView<const bool> &,
const MPI_Comm &,
const ArrayView<bool> &);


template bool
logical_or<bool>(const bool &, const MPI_Comm &);

Expand Down