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, 3 years ago

branch_openmp merged with XIOS_DEV_CMIP6@1459

File size: 2.5 KB
Line 
1#include "ep_lib.hpp"
2
3#include <mpi.h>
4
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;
26::MPI_Datatype MPI_UINT64_T_STD = MPI_UINT64_T;
27
28#undef MPI_INT
29#undef MPI_FLOAT
30#undef MPI_DOUBLE
31#undef MPI_LONG
32#undef MPI_CHAR
33#undef MPI_UNSIGNED_LONG
34#undef MPI_UNSIGNED_CHAR
35#undef MPI_UINT64_T
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;
41::MPI_Op MPI_LOR_STD = MPI_LOR;
42
43#undef MPI_SUM
44#undef MPI_MAX
45#undef MPI_MIN
46#undef MPI_LOR
47
48
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;
58extern ::MPI_Datatype MPI_UINT64_T_STD;
59
60
61extern ::MPI_Op MPI_SUM_STD;
62extern ::MPI_Op MPI_MAX_STD;
63extern ::MPI_Op MPI_MIN_STD;
64extern ::MPI_Op MPI_LOR_STD;
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
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;
80ep_lib::MPI_Datatype MPI_UINT64_T = &MPI_UINT64_T_STD;
81
82
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;
86ep_lib::MPI_Op MPI_LOR = &MPI_LOR_STD;
87
88ep_lib::MPI_Comm MPI_COMM_WORLD(&MPI_COMM_WORLD_STD);
89ep_lib::MPI_Comm MPI_COMM_NULL(&MPI_COMM_NULL_STD);
90
91ep_lib::MPI_Request MPI_REQUEST_NULL(&MPI_REQUEST_NULL_STD);
92ep_lib::MPI_Info MPI_INFO_NULL(&MPI_INFO_NULL_STD);
93
94
95
96
Note: See TracBrowser for help on using the repository browser.