From 32bb3329e779be0c8666810c7e17076f8213c319 Mon Sep 17 00:00:00 2001 From: FILIPPONE Jerome <jerome@filippone.fr> Date: Thu, 17 Nov 2022 04:34:35 +0000 Subject: [PATCH] Delete f1a.c --- f1a.c | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 f1a.c diff --git a/f1a.c b/f1a.c deleted file mode 100644 index 211b8f1..0000000 --- a/f1a.c +++ /dev/null @@ -1,20 +0,0 @@ -#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; - -} - -- GitLab