malleabilityManager.h 1.32 KB
Newer Older
1
2
3
#ifndef MALLEABILITY_MANAGER_H
#define MALLEABILITY_MANAGER_H

4
5
6
7
8
9
10
11
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <mpi.h>
#include "../IOcodes/read_ini.h"
#include "../IOcodes/results.h"
12
#include "../Main/Main_datatypes.h"
13
14
#include "malleabilityStates.h"

15
int init_malleability(int myId, int numP, int root, MPI_Comm comm, char *name_exec, char *nodelist, int num_cpus, int num_nodes);
16
void free_malleability();
17
void indicate_ending_malleability(int new_outside_state);
18
19
20
int malleability_checkpoint();
void set_benchmark_grp(int grp);

21
void set_malleability_configuration(int spawn_type, int spawn_is_single, int spawn_dist, int spawn_threaded, int comm_type, int comm_threaded);
22
void set_children_number(int numC); // TODO TO BE DEPRECATED
23
void get_malleability_user_comm(MPI_Comm *comm);
24
25
26

void malleability_add_data(void *data, int total_qty, int type, int is_replicated, int is_constant);
void malleability_get_entries(int *entries, int is_replicated, int is_constant);
27
void malleability_get_data(void **data, int index, int is_replicated, int is_constant);
28
29
30
31
32

void set_benchmark_configuration(configuration *config_file);
void get_benchmark_configuration(configuration **config_file);
void set_benchmark_results(results_data *results);
void get_benchmark_results(results_data **results);
33
34

#endif