Skip to content

Commit

Permalink
[Hotfix] Use inline static const to workaround OpenMPI when compiling…
Browse files Browse the repository at this point in the history
… with g++-12

Co-authored-by: Paul T. Bauman <[email protected]>
  • Loading branch information
noelchalmers and pbauman committed Oct 13, 2023
1 parent 62efa57 commit b27e086
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/comm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ namespace Comm {

/*Predefined ops*/
using op_t = MPI_Op;
static constexpr op_t Max = MPI_MAX;
static constexpr op_t Min = MPI_MIN;
static constexpr op_t Sum = MPI_SUM;
static constexpr op_t Prod = MPI_PROD;
static constexpr op_t And = MPI_LAND;
static constexpr op_t Or = MPI_LOR;
static constexpr op_t Xor = MPI_LXOR;
inline static const op_t Max = MPI_MAX;
inline static const op_t Min = MPI_MIN;
inline static const op_t Sum = MPI_SUM;
inline static const op_t Prod = MPI_PROD;
inline static const op_t And = MPI_LAND;
inline static const op_t Or = MPI_LOR;
inline static const op_t Xor = MPI_LXOR;

/*MPI_Init and MPI_Finalize*/
void Init(int &argc, char** &argv);
Expand Down

0 comments on commit b27e086

Please sign in to comment.