ProcessDist.h 716 Bytes
Newer Older
1
2
3
4
5
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include <string.h>
#include <slurm/slurm.h>
Iker Martín's avatar
Iker Martín committed
6
#include "malleabilityStates.h"
7

Iker Martín's avatar
Iker Martín committed
8
9
int init_slurm_comm(char *argv, int num_cpus, int num_nodes, char *nodelist, int myId, int numP, int numC, int root, int type_dist, int type_creation, int spawn_is_single, MPI_Comm comm, MPI_Comm *child);
int check_slurm_comm(int myId, int root, int numP, MPI_Comm *child, MPI_Comm comm, MPI_Comm comm_thread, double *end_real_time);
10

Iker Martín's avatar
Iker Martín committed
11
void malleability_establish_connection(int myId, int root, MPI_Comm *intercomm);
12
13


Iker Martín's avatar
Iker Martín committed
14
15
void proc_adapt_expand(int *numP, int numC, MPI_Comm intercomm, MPI_Comm *comm, int is_children_group);
void proc_adapt_shrink(int numC, MPI_Comm *comm, int myId);