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

Merge branch 'numa-abort' into 'master'

Stop when affinity is requested but not available

Fixes #346 

See merge request !397
parents b33f414d 8155dd74
No related branches found
No related tags found
1 merge request!397Stop when affinity is requested but not available
...@@ -190,7 +190,11 @@ int main(int argc, char *argv[]) { ...@@ -190,7 +190,11 @@ int main(int argc, char *argv[]) {
while ((c = getopt(argc, argv, "acCdDef:FgGhMn:P:sSt:Tv:y:Y:")) != -1) while ((c = getopt(argc, argv, "acCdDef:FgGhMn:P:sSt:Tv:y:Y:")) != -1)
switch (c) { switch (c) {
case 'a': case 'a':
#if defined(HAVE_SETAFFINITY) && defined(HAVE_LIBNUMA)
with_aff = 1; with_aff = 1;
#else
error("Need NUMA support for thread affinity");
#endif
break; break;
case 'c': case 'c':
with_cosmology = 1; with_cosmology = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment