Skip to content
Snippets Groups Projects

Fix compilation error when compiling without affinity turned on.

Merged James Willis requested to merge fix_affinity_bug into master
+ 2
0
Compare changes
  • Side-by-side
  • Inline
+ 2
0
@@ -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? */
Loading