Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reindent and only one timer type
[simgrid.git] / examples / smpi / NAS / nas_common.h
1 /* Copyright (c) 2016. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef NAS_COMMON_H
7 #define NAS_COMMON_H
8
9 #include <stdlib.h>
10 #include <stdio.h>
11 #include <math.h>
12 #include "mpi.h"
13
14 enum benchmark_types {IS, DT, EP};
15
16 int ilog2(int i);
17
18 void timer_clear(int n);
19 void timer_start(int n);
20 void timer_stop(int n);
21 double timer_read(int n);
22
23 double vranlc(int n, double x, double a, double *y);
24 double randlc(double *X, double*A);
25
26 void c_print_results(const char *name, char class, int n1, int n2, int n3, int niter, int nprocs_compiled,
27                      int nprocs_total, double t, double mops, const char *optype, int passed_verification);
28
29 void get_info(int argc, char *argv[], int *nprocsp, char *classp);
30 void check_info(int type, int nprocs, char class);
31
32 #endif