results.h 1.13 KB
Newer Older
1
2
3
4
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>

5
6
#define RESULTS_INIT_DATA_QTY 100

7
8
9
typedef struct {
  // Iters data
  double *iters_time;
10
  int *iters_type, iter_index, iters_size;
11

12
  // Spawn, Thread, Sync, Async and Exec time
13
  double spawn_start, *spawn_time, *spawn_real_time;
14
15
  double sync_start, sync_end,  *sync_time;
  double async_start, async_end, *async_time;
16
  double exec_start, exec_time;
17
  //Overcharge time is time spent in malleability that is from IO modules
18
19
} results_data;

20
21
void send_results(results_data *results, int root, int resizes, MPI_Comm intercomm);
void recv_results(results_data *results, int root, int resizes, MPI_Comm intercomm);
22

23
void set_results_post_reconfig(results_data *results, int grp, int sdr, int adr);
24
void reset_results_index(results_data *results);
25
26
27
28

void print_iter_results(results_data results, int last_normal_iter_index);
void print_global_results(results_data results, int resizes);
void init_results_data(results_data *results, int resizes, int iters_size);
29
void realloc_results_iters(results_data *results, int needed);
30
void free_results_data(results_data *results);