From 042a4c3a17814d25effdb1e3732c5b54af5dd6f2 Mon Sep 17 00:00:00 2001 From: "Lucas M. Schnorr" <schnorr@inf.ufrgs.br> Date: Thu, 12 Jan 2017 16:52:26 +0100 Subject: [PATCH] create a header file for experiments.c source file (with prototypes and includes) --- src/calibration/experiments.c | 9 ++------- src/calibration/experiments.h | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 src/calibration/experiments.h diff --git a/src/calibration/experiments.c b/src/calibration/experiments.c index 0ffbc10..63e0eaa 100755 --- a/src/calibration/experiments.c +++ b/src/calibration/experiments.c @@ -1,10 +1,5 @@ -#include <stdlib.h> -#include <math.h> -#include <assert.h> -#include <stdlib.h> -#include <stdio.h> -#include <time.h> -#include "calibrate.h" +#include "experiments.h" + MPI_Request *req_array; #define tag 1 #define datatype MPI_CHAR diff --git a/src/calibration/experiments.h b/src/calibration/experiments.h new file mode 100644 index 0000000..d350112 --- /dev/null +++ b/src/calibration/experiments.h @@ -0,0 +1,19 @@ +#ifndef __EXPERIMENTS_H_ +#define __EXPERIMENTS_H_ + +#include <stdlib.h> +#include <math.h> +#include <assert.h> +#include <stdlib.h> +#include <stdio.h> +#include <time.h> +#include "calibrate.h" + +double get_Recv(int count, int nb_it); +double get_iSendtime(int count, int nb_it); +double get_PingPongtime(int count, int nb_it); +long get_Wtime(int count, int nb_it); +double get_Iprobe(int count, int nb_it); +double get_Test(int count, int nb_it); + +#endif //__EXPERIMENTS_H_ -- GitLab