source: trunk/optimizer/src/pgapack/gekco/pgapack/include/fakempi_h @ 815

Last change on this file since 815 was 815, checked in by liveletlive, 16 years ago

Committing the /tmp/gekco/pgapack folder that contains the older PGAPack version and Prof. Klimecks changes to it.

File size: 2.1 KB
Line 
1/*  These are the definitions to use our fake version of MPI in mpi_stub.c
2 *  Guaranteed only to make PGAPack compile and link without MPI, but should
3 *  work from user C and fortran programs.
4 *
5 *  Some of these are from mpich's mpi.h, others are custom.
6 *
7 *  Author: Brian P. Walenz
8 */
9
10#ifndef MPI_FAKE_H
11#define MPI_FAKE_H 1
12
13typedef void *  MPI_Comm;
14typedef void *  MPI_Datatype;
15typedef long    MPI_Aint;
16
17typedef struct {
18    int     MPI_SOURCE;
19    int     MPI_TAG;
20    int     MPI_ERROR;
21} MPI_Status;
22
23#define MPI_BYTE            (void *)NULL
24#define MPI_CHAR            (void *)NULL
25#define MPI_DOUBLE          (void *)NULL
26#define MPI_FLOAT           (void *)NULL
27#define MPI_INT             (void *)NULL
28#define MPI_LONG            (void *)NULL
29#define MPI_LONG_DOUBLE     (void *)NULL
30#define MPI_PACKED          (void *)NULL
31#define MPI_SHORT           (void *)NULL
32#define MPI_UNSIGNED_CHAR   (void *)NULL
33#define MPI_UNSIGNED        (void *)NULL
34#define MPI_UNSIGNED_LONG   (void *)NULL
35#define MPI_UNSIGNED_SHORT  (void *)NULL
36
37#define MPI_COMM_WORLD      (void *)NULL
38#define MPI_COMM_SELF       (void *)NULL
39
40#define MPI_BOTTOM          (void *)0
41
42#define MPI_PROC_NULL       (-1)
43#define MPI_ANY_SOURCE      (-2)
44#define MPI_ANY_TAG         (-1)
45
46/*  Declare prototypes for the MPI functions.  */
47int MPI_Address(void *, MPI_Aint *);
48int MPI_Bcast(void *, int, MPI_Datatype, int, MPI_Comm);
49int MPI_Comm_dup(MPI_Comm, MPI_Comm *);
50int MPI_Comm_free(MPI_Comm *);
51int MPI_Comm_rank(MPI_Comm, int *);
52int MPI_Comm_size(MPI_Comm, int *);
53int MPI_Finalize(void);
54int MPI_Init(int *, char ***);
55int MPI_Initialized(int *);
56int MPI_Probe(int, int, MPI_Comm, MPI_Status *);
57int MPI_Send(void *, int, MPI_Datatype, int, int, MPI_Comm);
58int MPI_Recv(void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Status *);
59int MPI_Sendrecv(void *, int, MPI_Datatype, int, int, void *, int,
60                 MPI_Datatype, int, int, MPI_Comm, MPI_Status *);
61int MPI_Type_commit(MPI_Datatype *);
62int MPI_Type_free(MPI_Datatype *);
63int MPI_Type_struct(int, int *, MPI_Aint *, MPI_Datatype *, MPI_Datatype *);
64
65
66#endif
67
Note: See TracBrowser for help on using the repository browser.