GenericSpawn.h 821 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
#ifndef MALLEABILITY_GENERIC_SPAWN_H
#define MALLEABILITY_GENERIC_SPAWN_H

#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include "../malleabilityDataStructures.h"

int init_spawn(char *argv, int num_cpus, int num_nodes, char *nodelist, int myId, int initial_qty, int target_qty, int root, int type_dist, int spawn_method, int spawn_strategies, MPI_Comm comm, MPI_Comm *child);
10
int check_spawn_state(MPI_Comm *child, MPI_Comm comm, int wait_completed);
11
void malleability_connect_children(int myId, int numP, int root, MPI_Comm comm, int *numP_parents, int *root_parents, MPI_Comm *parents);
12

13

14
void unset_spawn_postpone_flag(int outside_state);
15
int malleability_spawn_contains_strat(int spawn_strategies, int strategy, int *result);
16
int malleability_spawn_add_strat(int *spawn_strategies, int strategy);
17
18

#endif