mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 03:57:45 +00:00
[cluster] Make bench compatible
Fix one TODO. Takes care of output from bench. Sum nodes over ranks.
This commit is contained in:
committed by
Stéphane Nicolet
parent
9cd2c817db
commit
e526c5aa52
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user