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
|
// START MAIN LOOP ======================================================{{{1
|
||||||
|
|
||||||
|
MPI_Barrier(universe);
|
||||||
double energy(0.);
|
double energy(0.);
|
||||||
size_t first_iteration = 0;
|
size_t first_iteration = 0;
|
||||||
Checkpoint c;
|
Checkpoint c;
|
||||||
|
|||||||
@ -250,12 +250,12 @@ namespace atrip {
|
|||||||
|
|
||||||
#ifdef NAIVE_SLOW
|
#ifdef NAIVE_SLOW
|
||||||
WITH_CHRONO("db:comm:naive:tuples",
|
WITH_CHRONO("db:comm:naive:tuples",
|
||||||
const auto tuples = get_nth_naive_tuples(nv,
|
const auto tuples = get_nth_naive_tuples(nv,
|
||||||
np,
|
np,
|
||||||
iteration);
|
iteration);
|
||||||
const auto prev_tuples = get_nth_naive_tuples(nv,
|
const auto prev_tuples = get_nth_naive_tuples(nv,
|
||||||
np,
|
np,
|
||||||
(int64_t)iteration - 1);
|
(int64_t)iteration - 1);
|
||||||
)
|
)
|
||||||
#else
|
#else
|
||||||
WITH_CHRONO("db:comm:naive:tuples",
|
WITH_CHRONO("db:comm:naive:tuples",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user