| #include <sched.h> | |
| #include <sys/types.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include "third_party/libnuma/numa.h" | |
| void numa_init(void); | |
| int main(int argc, char *argv[]) | |
| { | |
| numa_init(); | |
| if (numa_available() == 0) { | |
| printf("numa max node: %d\n", numa_max_node()); | |
| } else { | |
| printf("numa not available\n"); | |
| } | |
| return (0); | |
| } |