Skip to content
Snippets Groups Projects
Commit 0fda419f authored by Peter W. Draper's avatar Peter W. Draper
Browse files

MPI and affinity control are not compatible

MPI libraries offer affinity control so as a first guess we shouldn't attempt any control, this is really bad when running more than one rank on the same machine (threads pinned to same cores).
parent 03c44d0f
Branches
Tags
2 merge requests!136Master,!79First version of the multiple time-stepping
......@@ -116,6 +116,7 @@ int main(int argc, char *argv[]) {
/* Greeting message */
if (myrank == 0) greetings();
#ifndef WITH_MPI
#if defined(HAVE_SETAFFINITY) && defined(HAVE_LIBNUMA) && defined(_GNU_SOURCE)
/* Ensure the NUMA node on which we initialise (first touch) everything
* doesn't change before engine_init allocates NUMA-local workers. Otherwise,
......@@ -129,6 +130,7 @@ int main(int argc, char *argv[]) {
} else {
message("set entry thread's affinity");
}
#endif
#endif
/* Init the space. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment