Skip to content
Snippets Groups Projects
Commit 781ef56e authored by kerbouch4u's avatar kerbouch4u
Browse files

Merge remote-tracking branch 'origin/dev1' into dev

parents 4a1ee348 93961f8f
No related branches found
No related tags found
1 merge request!1dev1
sf1a 0 → 100755
File added
sf1a.c 0 → 100644
#include <stdio.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/types.h>
int main() {
unsigned cpu, node;
// Get current CPU core and NUMA node via system call
// Note this has no glibc wrapper so we must call it directly
syscall(SYS_getcpu, &cpu, &node, NULL);
// Display information
printf("This program is running on CPU core %u and NUMA node %u.\n\n", cpu, node);
return 0;
}
sf1a.o 0 → 100644
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment