Last change
on this file since 2015 was
1642,
checked in by yushan, 6 years ago
|
dev on ADA. add flag switch _usingEP/_usingMPI
|
-
Property copyright set to
Software name : XIOS (Xml I/O Server) http://forge.ipsl.jussieu.fr/ioserver Creation date : January 2009 Licence : CeCCIL version2 see license file in root directory : Licence_CeCILL_V2-en.txt or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement) CNRS/IPSL (Institut Pierre Simon Laplace) Project Manager : Yann Meurdesoif yann.meurdesoif@cea.fr
|
File size:
859 bytes
|
Line | |
---|
1 | #ifndef __XIOS_MPI_HPP__ |
---|
2 | #define __XIOS_MPI_HPP__ |
---|
3 | |
---|
4 | /* skip C++ Binding for mpich , intel MPI */ |
---|
5 | #define MPICH_SKIP_MPICXX |
---|
6 | |
---|
7 | /* skip C++ Binding for SGI MPI library */ |
---|
8 | #define MPI_NO_CPPBIND |
---|
9 | |
---|
10 | /* skip C++ Binding for OpenMPI */ |
---|
11 | #define OMPI_SKIP_MPICXX |
---|
12 | |
---|
13 | #ifdef _usingEP |
---|
14 | #include "ep_lib.hpp" |
---|
15 | #include "ep_declaration.hpp" |
---|
16 | #endif |
---|
17 | |
---|
18 | #include <mpi.h> |
---|
19 | |
---|
20 | #ifdef _usingMPI |
---|
21 | |
---|
22 | #define ep_lib |
---|
23 | |
---|
24 | #define EP_INT MPI_INT |
---|
25 | #define EP_FLOAT MPI_FLOAT |
---|
26 | #define EP_DOUBLE MPI_DOUBLE |
---|
27 | #define EP_CHAR MPI_CHAR |
---|
28 | #define EP_LONG MPI_LONG |
---|
29 | #define EP_LONG_LONG_INT MPI_LONG_LONG_INT |
---|
30 | #define EP_UNSIGNED_LONG MPI_UNSIGNED_LONG |
---|
31 | #define EP_UNSIGNED_CHAR MPI_UNSIGNED_CHAR |
---|
32 | |
---|
33 | |
---|
34 | #define EP_COMM_WORLD MPI_COMM_WORLD |
---|
35 | #define EP_COMM_NULL MPI_COMM_NULL |
---|
36 | #define EP_INFO_NULL MPI_INFO_NULL |
---|
37 | |
---|
38 | #define EP_MAX MPI_MAX |
---|
39 | #define EP_MIN MPI_MIN |
---|
40 | #define EP_SUM MPI_SUM |
---|
41 | #define EP_LOR MPI_LOR |
---|
42 | |
---|
43 | #endif |
---|
44 | |
---|
45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.