Commit 79c9a0f9 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'fix_affinity_bug' into 'master'

Fix compilation error when compiling without affinity turned on.

Does this seem like a reasonable fix to #261, @pdraper @matthieu?

See merge request !309
parents 18c2cce2 0f6db50d
......@@ -3293,6 +3293,7 @@ void engine_init(struct engine *e, struct space *s,
#endif
if (with_aff) {
#ifdef HAVE_SETAFFINITY
#ifdef WITH_MPI
printf("[%04i] %s engine_init: cpu map is [ ", nodeID,
clocks_get_timesincestart());
......@@ -3301,6 +3302,7 @@ void engine_init(struct engine *e, struct space *s,
#endif
for (int i = 0; i < nr_affinity_cores; i++) printf("%i ", cpuid[i]);
printf("].\n");
#endif
}
/* Are we doing stuff in parallel? */
......
Supports Markdown
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