Skip to content
Snippets Groups Projects
Commit 4511d85d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Less verbose engine_init() in MPI mode

parent 34a46475
No related branches found
No related tags found
2 merge requests!136Master,!94Integer timeline
...@@ -2175,7 +2175,8 @@ void engine_init(struct engine *e, struct space *s, float dt, int nr_threads, ...@@ -2175,7 +2175,8 @@ void engine_init(struct engine *e, struct space *s, float dt, int nr_threads,
int home = numa_node_of_cpu(sched_getcpu()), half = nr_cores / 2; int home = numa_node_of_cpu(sched_getcpu()), half = nr_cores / 2;
bool done = false, swap_hyperthreads = hyperthreads_present(); bool done = false, swap_hyperthreads = hyperthreads_present();
if (swap_hyperthreads) message("prefer physical cores to hyperthreads"); if (swap_hyperthreads && nodeID == 0)
message("prefer physical cores to hyperthreads");
while (!done) { while (!done) {
done = true; done = true;
...@@ -2272,7 +2273,8 @@ void engine_init(struct engine *e, struct space *s, float dt, int nr_threads, ...@@ -2272,7 +2273,8 @@ void engine_init(struct engine *e, struct space *s, float dt, int nr_threads,
engine_print_policy(e); engine_print_policy(e);
/* Print information about the hydro scheme */ /* Print information about the hydro scheme */
message("Hydrodynamic scheme: %s", SPH_IMPLEMENTATION); if (e->nodeID == 0)
message("Hydrodynamic scheme: %s", SPH_IMPLEMENTATION);
/* Deal with timestep */ /* Deal with timestep */
e->timeBase = (timeEnd - timeBegin) / max_nr_timesteps; e->timeBase = (timeEnd - timeBegin) / max_nr_timesteps;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment