Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!309Fix compilation error when compiling without affinity turned on.
......@@ -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? */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment