-
Notifications
You must be signed in to change notification settings - Fork 0
/
mspar.h
26 lines (24 loc) · 1.47 KB
/
mspar.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <mpi.h>
void masterWorker(int argc, char *argv[], int howmany, struct params parameters, int unsigned maxsites);
void teardown();
int setup(int argc, char *argv[], int howmany, struct params parameters);
int doInitializeRng(int argc, char *argv[]);
char* generateSample(struct params parameters, unsigned int maxsites, int *bytes);
char *generateSamples(int, struct params, unsigned, int *bytes);
struct gensam_result gensam(char **gametes, double *probss, double *ptmrca, double *pttot, struct params pars, int* segsites);
char *append(char *lhs, const char *rhs);
char *doPrintWorkerResultHeader(int segsites, double probss, struct params paramters, char *treeOutput);
char *doPrintWorkerResultPositions(int segsites, int output_precision, double *posit);
char *doPrintWorkerResultGametes(int segsites, int nsam, char **gametes);
char *readResults(MPI_Comm comm, int* source, int *bytes);
void initializeSeedMatrix(int argc, char *argv[], int howmany);
void singleNodeProcessing(int howmany, struct params parameters, unsigned int maxsites, int *bytes);
void printSamples(char *results, int bytes);
void secondaryNodeProcessing(int remaining, struct params parameters, unsigned int maxsites);
void sendResultsToMaster(char *results, int bytes, MPI_Comm comm);
void principalMasterProcessing(int remaining, int nodes, struct params parameters, unsigned int maxsites);
int calculateNumberOfNodes();
/* From ms.c*/
char ** cmatrix(int nsam, int len);
double ran1();
int commandlineseed(char **);