Skip to content
Snippets Groups Projects
Unverified Commit fb5d4ea7 authored by Sam Yates's avatar Sam Yates Committed by GitHub
Browse files

Permit size_t to be unsigned int for MPI. (#976)

* Amend `size_t` type check in `mpi.hpp` to support 32-bit builds.
parent ec60bcc1
No related branches found
No related tags found
No related merge requests found
...@@ -58,9 +58,10 @@ MAKE_TRAITS(unsigned long, MPI_UNSIGNED_LONG) ...@@ -58,9 +58,10 @@ MAKE_TRAITS(unsigned long, MPI_UNSIGNED_LONG)
MAKE_TRAITS(long long, MPI_LONG_LONG) MAKE_TRAITS(long long, MPI_LONG_LONG)
MAKE_TRAITS(unsigned long long, MPI_UNSIGNED_LONG_LONG) MAKE_TRAITS(unsigned long long, MPI_UNSIGNED_LONG_LONG)
static_assert(std::is_same<std::size_t, unsigned long>::value || static_assert(std::is_same<std::size_t, unsigned>::value ||
std::is_same<std::size_t, unsigned long>::value ||
std::is_same<std::size_t, unsigned long long>::value, std::is_same<std::size_t, unsigned long long>::value,
"size_t is not the same as unsigned long or unsigned long long"); "size_t is not the same as any MPI unsigned type");
// Gather individual values of type T from each rank into a std::vector on // Gather individual values of type T from each rank into a std::vector on
// the root rank. // the root rank.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment