Benjamin Brock
2018-09-04 21:22:22 UTC
Are MPI datatypes like MPI_INT and MPI_CHAR guaranteed to be compile-time
constants? Is this defined by the MPI standard, or in the Open MPI
implementation?
I've written some template code where MPI datatypes are constexpr members,
which requires that they be known at compile time. This works in Open MPI
and MPICH, but not in Spectrum MPI--I'm not sure what they've done that
breaks this, but I'm trying to file a bug and any information you have
about whether these are compile-time constants would be useful.
Ben
constants? Is this defined by the MPI standard, or in the Open MPI
implementation?
I've written some template code where MPI datatypes are constexpr members,
which requires that they be known at compile time. This works in Open MPI
and MPICH, but not in Spectrum MPI--I'm not sure what they've done that
breaks this, but I'm trying to file a bug and any information you have
about whether these are compile-time constants would be useful.
Ben