~ubuntu-branches/ubuntu/vivid/adios/vivid-proposed

« back to all changes in this revision

Viewing changes to src/public/mpidummy.h

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2014-06-16 23:06:38 UTC
  • mfrom: (15.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20140616230638-cxryhot6b8ge32l6
Tags: 1.7.0-1
* New upstream release.
* Add adios.pc pkgconfig file. adios_config now uses this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
/*
12
12
   A dummy MPI 'implementation' for the BP READ API, to have an MPI-free version of the API
13
13
*/
14
 
 
15
14
#include <sys/types.h>
16
15
#include <sys/stat.h>
17
16
#include <fcntl.h>
18
17
#include <stdint.h>
19
18
#include <stdio.h>
20
19
 
 
20
#ifdef __cplusplus
 
21
extern "C" {
 
22
#endif
 
23
 
21
24
typedef int MPI_Comm;
22
25
typedef uint64_t MPI_Status;
23
26
typedef int MPI_File;
38
41
#define MPI_SEEK_CUR                SEEK_CUR
39
42
#define MPI_SEEK_END                SEEK_END
40
43
#define MPI_BYTE                    1          /* I need the size of the type here */
41
 
#define MPI_INFO_NULL               NULL
 
44
#define MPI_INFO_NULL               0
42
45
 
43
46
#define MPI_COMM_NULL               0
44
47
#define MPI_COMM_WORLD              1
53
56
 
54
57
#define MPI_SUM                     0
55
58
 
 
59
#define MPI_MAX_PROCESSOR_NAME      32
56
60
int MPI_Init(int *argc, char ***argv);
57
61
int MPI_Finalize();
58
62
int MPI_Initialized( int* flag ) ;
63
67
int MPI_Comm_dup(MPI_Comm comm, MPI_Comm *newcomm);
64
68
int MPI_Comm_rank(MPI_Comm comm, int *rank);
65
69
int MPI_Comm_size(MPI_Comm comm, int *size);
 
70
int MPI_Comm_free(MPI_Comm *comm);
66
71
MPI_Comm MPI_Comm_f2c(MPI_Fint comm);
67
72
 
68
73
int MPI_Gather(void *sendbuf, int sendcnt, MPI_Datatype sendtype, void *recvbuf, int recvcnt, MPI_Datatype recvtype, int root, MPI_Comm comm) ;
69
74
int MPI_Gatherv(void *sendbuf, int sendcnt, MPI_Datatype sendtype, void *recvbuf, int *recvcnts, int *displs, MPI_Datatype recvtype, int root, MPI_Comm comm);
 
75
int MPI_Allgather(void *sendbuf, int sendcount, MPI_Datatype sendtype,
 
76
                  void *recvbuf, int recvcount, MPI_Datatype recvtype,
 
77
                  MPI_Comm comm);
 
78
 
 
79
int MPI_Scatter(void *sendbuf, int sendcnt, MPI_Datatype sendtype, void *recvbuf, int recvcnt, MPI_Datatype recvtype, int root, MPI_Comm comm);
 
80
int MPI_Scatterv(void *sendbuf, int *sendcnts, int *displs, MPI_Datatype sendtype, void *recvbuf, int recvcnt, MPI_Datatype recvtype, int root, MPI_Comm comm);
 
81
 
 
82
 
70
83
 
71
84
int MPI_File_open(MPI_Comm comm, char *filename, int amode, MPI_Info info, MPI_File *fh);
72
85
int MPI_File_close(MPI_File *fh);
78
91
int MPI_Error_string(int errorcode, char *string, int *resultlen);
79
92
int MPI_Comm_split ( MPI_Comm comm, int color, int key, MPI_Comm *comm_out );
80
93
 
 
94
int MPI_Get_processor_name (char *name, int *resultlen);
 
95
 
81
96
double MPI_Wtime();
82
97
 
 
98
#ifdef __cplusplus
 
99
}
 
100
#endif
 
101
 
83
102
#endif