#include <stdio.h> #include "mpe.h" void CLOG_csync( root, diffs ) int root; double diffs;This version is sequential and non-scalable. The root process seriallysynchronizes with each slave, using the first algorithm in Gropp, " Scalableclock synchronization on distributed processors without a common clock". The array is calculated on the root but broadcast and returned on allprocesses.
|root||process to serve as master
|timediffs||array of doubles to be filled in