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

4
5
6
7
8
9
10
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <mpi.h>
#include "../IOcodes/results.h"
11
#include "../Main/configuration.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_method, int spawn_strategies, int spawn_dist, int red_method, int red_strategies);
22
void set_children_number(int numC); // TODO TO BE DEPRECATED
23
void get_malleability_user_comm(MPI_Comm *comm);
24

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

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);
34
35

#endif