16 lines
515 B
Diff
16 lines
515 B
Diff
|
diff -up numactl-2.0.9/numactl.c.orig numactl-2.0.9/numactl.c
|
||
|
--- numactl-2.0.9/numactl.c.orig 2014-07-31 15:42:21.474060364 +0200
|
||
|
+++ numactl-2.0.9/numactl.c 2014-07-31 15:42:32.894085763 +0200
|
||
|
@@ -242,6 +242,11 @@ void hardware(void)
|
||
|
int prevnode=-1;
|
||
|
int skip=0;
|
||
|
int maxnode = numa_max_node();
|
||
|
+
|
||
|
+ if (numa_available() < 0) {
|
||
|
+ printf("No NUMA available on this system\n");
|
||
|
+ exit(1);
|
||
|
+ }
|
||
|
|
||
|
for (i=0; i<=maxnode; i++)
|
||
|
if (numa_bitmask_isbitset(numa_nodes_ptr, i))
|