source: XIOS/dev/branch_openmp/extern/src_ep_dev/ep_declaration.cpp @ 1460

Last change on this file since 1460 was 1460, checked in by yushan, 6 years ago

branch_openmp merged with XIOS_DEV_CMIP6@1459

File size: 2.5 KB
RevLine 
[1134]1#include "ep_lib.hpp"
2
3#include <mpi.h>
4
[1287]5::MPI_Comm MPI_COMM_WORLD_STD = MPI_COMM_WORLD;
6#undef MPI_COMM_WORLD
7
8
9::MPI_Comm MPI_COMM_NULL_STD = MPI_COMM_NULL;
10#undef MPI_COMM_NULL
11
12
13::MPI_Request MPI_REQUEST_NULL_STD = MPI_REQUEST_NULL;
14#undef MPI_REQUEST_NULL
15
16::MPI_Info MPI_INFO_NULL_STD = MPI_INFO_NULL;
17#undef MPI_INFO_NULL
18
19::MPI_Datatype MPI_INT_STD = MPI_INT;
20::MPI_Datatype MPI_FLOAT_STD = MPI_FLOAT;
21::MPI_Datatype MPI_DOUBLE_STD = MPI_DOUBLE;
22::MPI_Datatype MPI_LONG_STD = MPI_LONG;
23::MPI_Datatype MPI_CHAR_STD = MPI_CHAR;
24::MPI_Datatype MPI_UNSIGNED_LONG_STD = MPI_UNSIGNED_LONG;
25::MPI_Datatype MPI_UNSIGNED_CHAR_STD = MPI_UNSIGNED_CHAR;
[1460]26::MPI_Datatype MPI_UINT64_T_STD = MPI_UINT64_T;
[1287]27
[1134]28#undef MPI_INT
29#undef MPI_FLOAT
30#undef MPI_DOUBLE
[1287]31#undef MPI_LONG
[1134]32#undef MPI_CHAR
[1287]33#undef MPI_UNSIGNED_LONG
34#undef MPI_UNSIGNED_CHAR
[1460]35#undef MPI_UINT64_T
[1287]36
37
38::MPI_Op MPI_SUM_STD = MPI_SUM;
39::MPI_Op MPI_MAX_STD = MPI_MAX;
40::MPI_Op MPI_MIN_STD = MPI_MIN;
[1460]41::MPI_Op MPI_LOR_STD = MPI_LOR;
[1287]42
43#undef MPI_SUM
44#undef MPI_MAX
45#undef MPI_MIN
[1460]46#undef MPI_LOR
[1287]47
48
[1134]49// _STD defined in ep_type.cpp
50
51extern ::MPI_Datatype MPI_INT_STD;
52extern ::MPI_Datatype MPI_FLOAT_STD;
53extern ::MPI_Datatype MPI_DOUBLE_STD;
54extern ::MPI_Datatype MPI_LONG_STD;
55extern ::MPI_Datatype MPI_CHAR_STD;
56extern ::MPI_Datatype MPI_UNSIGNED_LONG_STD;
57extern ::MPI_Datatype MPI_UNSIGNED_CHAR_STD;
[1460]58extern ::MPI_Datatype MPI_UINT64_T_STD;
[1134]59
[1460]60
[1134]61extern ::MPI_Op MPI_SUM_STD;
62extern ::MPI_Op MPI_MAX_STD;
63extern ::MPI_Op MPI_MIN_STD;
[1460]64extern ::MPI_Op MPI_LOR_STD;
[1134]65
66extern ::MPI_Comm MPI_COMM_WORLD_STD;
67extern ::MPI_Comm MPI_COMM_NULL_STD;
68
69extern ::MPI_Status MPI_STATUS_IGNORE_STD;
70extern ::MPI_Request MPI_REQUEST_NULL_STD;
71extern ::MPI_Info MPI_INFO_NULL_STD;
72
[1365]73ep_lib::MPI_Datatype MPI_INT = &MPI_INT_STD;
74ep_lib::MPI_Datatype MPI_FLOAT = &MPI_FLOAT_STD;
75ep_lib::MPI_Datatype MPI_DOUBLE = &MPI_DOUBLE_STD;
76ep_lib::MPI_Datatype MPI_CHAR = &MPI_CHAR_STD;
77ep_lib::MPI_Datatype MPI_LONG = &MPI_LONG_STD;
78ep_lib::MPI_Datatype MPI_UNSIGNED_LONG = &MPI_UNSIGNED_LONG_STD;
79ep_lib::MPI_Datatype MPI_UNSIGNED_CHAR = &MPI_UNSIGNED_CHAR_STD;
[1460]80ep_lib::MPI_Datatype MPI_UINT64_T = &MPI_UINT64_T_STD;
[1134]81
[1460]82
[1368]83ep_lib::MPI_Op MPI_SUM = &MPI_SUM_STD;
84ep_lib::MPI_Op MPI_MAX = &MPI_MAX_STD;
85ep_lib::MPI_Op MPI_MIN = &MPI_MIN_STD;
[1460]86ep_lib::MPI_Op MPI_LOR = &MPI_LOR_STD;
[1134]87
[1354]88ep_lib::MPI_Comm MPI_COMM_WORLD(&MPI_COMM_WORLD_STD);
89ep_lib::MPI_Comm MPI_COMM_NULL(&MPI_COMM_NULL_STD);
[1134]90
[1373]91ep_lib::MPI_Request MPI_REQUEST_NULL(&MPI_REQUEST_NULL_STD);
[1362]92ep_lib::MPI_Info MPI_INFO_NULL(&MPI_INFO_NULL_STD);
[1134]93
94
95
96
Note: See TracBrowser for help on using the repository browser.