Commit fc377147 authored by Lukas Weber's avatar Lukas Weber

all ranks quit at the same time

otherwise slurm will kill the job after a small timeout
parent 33782b22
......@@ -41,6 +41,7 @@ int runner_mpi_start(jobinfo job, const mc_factory &mccreator, int argc, char **
r.start();
}
MPI_Barrier(MPI_COMM_WORLD);
MPI_Finalize();
return rc;
......@@ -59,6 +60,8 @@ int runner_master::start() {
}
bool all_done = current_task_id_ < 0;
job_.log(fmt::format("master: stopping due to {}", all_done ? "completion" : "time limit"));
return !all_done;
}
......
......@@ -146,6 +146,7 @@ int runner_pt_start(jobinfo job, const mc_factory &mccreator, int argc, char **a
r.start();
}
MPI_Barrier(MPI_COMM_WORLD);
MPI_Finalize();
return rc;
......@@ -386,6 +387,9 @@ int runner_pt_master::start() {
break;
}
}
job_.log(fmt::format("master: stopping due to {}", all_done ? "completion" : "time limit"));
return !all_done;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment