Create a barrier before the iterations start
This commit is contained in:
parent
3ddd507c17
commit
3addd86826
@ -454,6 +454,7 @@ Atrip::Output Atrip::run(Atrip::Input<F> const& in) {
|
||||
|
||||
// START MAIN LOOP ======================================================{{{1
|
||||
|
||||
MPI_Barrier(universe);
|
||||
double energy(0.);
|
||||
size_t first_iteration = 0;
|
||||
Checkpoint c;
|
||||
|
||||
@ -250,12 +250,12 @@ namespace atrip {
|
||||
|
||||
#ifdef NAIVE_SLOW
|
||||
WITH_CHRONO("db:comm:naive:tuples",
|
||||
const auto tuples = get_nth_naive_tuples(nv,
|
||||
np,
|
||||
iteration);
|
||||
const auto prev_tuples = get_nth_naive_tuples(nv,
|
||||
np,
|
||||
(int64_t)iteration - 1);
|
||||
const auto tuples = get_nth_naive_tuples(nv,
|
||||
np,
|
||||
iteration);
|
||||
const auto prev_tuples = get_nth_naive_tuples(nv,
|
||||
np,
|
||||
(int64_t)iteration - 1);
|
||||
)
|
||||
#else
|
||||
WITH_CHRONO("db:comm:naive:tuples",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user