Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / examples / smpi / NAS / nas_common.h
1 /* Copyright (c) 2016-2023. 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 <stdint.h>
12 #include <math.h>
13 #include "mpi.h"
14
15 enum benchmark_types {IS, DT, EP};
16
17 int ilog2(int i);
18
19 void timer_clear(int n);
20 void timer_start(int n);
21 void timer_stop(int n);
22 double timer_read(int n);
23
24 double vranlc(int n, double x, double a, double *y);
25 double randlc(double *X, double*A);
26
27 void c_print_results(const char *name, char class, int n1, int n2, int n3, int niter, int nprocs_compiled,
28                      int nprocs_total, double t, double mops, const char *optype, int passed_verification);
29
30 void get_info(int argc, char *argv[], int *nprocsp, char *classp);
31 void check_info(int type, int nprocs, char class);
32
33 #endif