MAM_Manager.h 1.14 KB
Newer Older
1
2
#ifndef MAM_MANAGER_H
#define MAM_MANAGER_H
3

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>

11
12
13
14
15
16
typedef struct {
  int numS, numT;
  int rank_state;
  MPI_Comm comm;
} mam_user_reconf_t;

17
int MAM_Init(int root, MPI_Comm *comm, char *name_exec, void (*user_function)(void *), void *user_args);
18
int MAM_Finalize();
19
int MAM_Checkpoint(int *mam_state, int wait_completed, void (*user_function)(void *), void *user_args);
20
21
void MAM_Resume_redistribution(int *mam_state);

22

23
int MAM_Get_Reconf_Info(mam_user_reconf_t *reconf_info);
24
25
int MAM_DMR_Is_zombie(); //Added for DMR
void MAM_DMR_Update_nodelist(char *nodelist, int num_nodes); //Added for DMR
26

27
28
29
30
void MAM_Data_add(void *data, size_t *index, size_t total_qty, MPI_Datatype type, int is_replicated, int is_constant);
void MAM_Data_modify(void *data, size_t index, size_t total_qty, MPI_Datatype type, int is_replicated, int is_constant);
void MAM_Data_get_entries(int is_replicated, int is_constant, size_t *entries);
void MAM_Data_get_pointer(void **data, size_t index, size_t *total_qty, MPI_Datatype *type, int is_replicated, int is_constant);
31
#endif