From d511cf2913feafcfe2d3f421376c551805bc8081 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Tue, 23 Aug 2022 11:56:55 +0200 Subject: [PATCH] Remove unneeded test_speed.c file --- test_speed.c | 72 ---------------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 test_speed.c diff --git a/test_speed.c b/test_speed.c deleted file mode 100644 index 05433dc..0000000 --- a/test_speed.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) 2021-2022 Barcelona Supercomputing Center (BSC) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#define _POSIX_C_SOURCE 200112L -#define _GNU_SOURCE - -#include -#include -#include -#include -#include -#include -#include - -#include "ovni.h" -#include "compat.h" - -static inline void -init(void) -{ - char hostname[HOST_NAME_MAX]; - - if(gethostname(hostname, HOST_NAME_MAX) != 0) - { - perror("gethostname failed"); - abort(); - } - - ovni_proc_init(0, hostname, getpid()); - ovni_thread_init(gettid()); - ovni_add_cpu(0, 0); -} - -int main(int argc, char *argv[]) -{ - struct ovni_ev ev = {0}; - int i, n; - - if(argc > 1) - n = atoi(argv[1]); - else - n = 1000; - - init(); - - ovni_ev_set_mcv(&ev, "OB."); - - for(i=0; i