[cluster] Make bench compatible

Fix one TODO.

Takes care of output from bench.
Sum nodes over ranks.
This commit is contained in:
Joost VandeVondele
2018-12-15 22:19:39 +01:00
committed by Stéphane Nicolet
parent 9cd2c817db
commit e526c5aa52
3 changed files with 16 additions and 7 deletions
+6
View File
@@ -266,6 +266,12 @@ void pick_moves(MoveInfo& mi) {
MPI_Bcast(&mi, 1, MIDatatype, 0, MoveComm);
}
void sum(uint64_t& val) {
const uint64_t send = val;
MPI_Reduce(&send, &val, 1, MPI_UINT64_T, MPI_SUM, 0, MoveComm);
}
}
#endif // USE_MPI