Skip to content
Snippets Groups Projects
Commit 0f6db50d authored by James Willis's avatar James Willis
Browse files

Fix compilation error when compiling without affinity turned on.

parent ceca95de
No related branches found
No related tags found
1 merge request!309Fix compilation error when compiling without affinity turned on.
......@@ -3289,6 +3289,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());
......@@ -3297,6 +3298,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