Class to store global MPI information and to prevent accidental changes.
More...
#include <globalmpiinfo.h>
Definition at line 22 of file globalmpiinfo.h.
◆ init()
void GlobalMpiInformation::init |
( |
const MInt |
domainId, |
|
|
const MInt |
noDomains |
|
) |
| |
|
inline |
◆ initMPIInformation()
void GlobalMpiInformation::initMPIInformation |
( |
| ) |
|
|
inlineprivate |
Definition at line 32 of file globalmpiinfo.h.
32 {
34
35
36
37
38 MPI_Info_set(
m_mpiInfo,
"nc_header_align_size",
"10240");
39
40
41
42#if !defined(WITH_HDF5) && defined(MPI_IO_OPT) && defined(HOST_HAZELHEN)
43
44
46 MPI_Info_set(
m_mpiInfo, (
char*)
"cb_align", (
char*)
"2");
47 MPI_Info_set(
m_mpiInfo, (
char*)
"cb_nodes_list", (
char*)
"*:*");
48 MPI_Info_set(
m_mpiInfo, (
char*)
"direct_io", (
char*)
"false");
49 MPI_Info_set(
m_mpiInfo, (
char*)
"romio_ds_read", (
char*)
"disable");
50 MPI_Info_set(
m_mpiInfo, (
char*)
"romio_ds_write", (
char*)
"disable");
51
52
53
54
55 MPI_Info_set(
m_mpiInfo, (
char*)
"ind_wr_buffer_size", (
char*)
"16777216");
56
57 MPI_Info_set(
m_mpiInfo, (
char*)
"striping_factor", (
char*)
"64");
58
59 MPI_Info_set(
m_mpiInfo, (
char*)
"cb_nodes", (
char*)
"128");
60 }
61#endif
62
63#if defined(MPI_IO_OPT) && defined(HOST_Hawk)
65
66
67
68
69
70
71
72 MPI_Info_set(
m_mpiInfo, (
char*)
"romio_cb_read", (
char*)
"disable");
73 MPI_Info_set(
m_mpiInfo, (
char*)
"romio_cb_write", (
char*)
"disable");
75 std::cerr << std::endl
76 << std::endl
77 << "NOTE: disabling ROMIO hints romio_cb_read/write to avoid PNetcdf/Hdf5 memory allocation issues "
78 "on HAWK... "
79 << std::endl
80 << "NOTE: see comment at " << AT_ << std::endl
81 << "NOTE: undefine MPI_IO_OPT to turn off the ROMIO hint changes." << std::endl
82 << std::endl
83 << std::endl;
84 }
85
86
87
88
89 }
90#endif
91
92#ifdef MPI_IO_PRINT_INFO
93
95 std::cerr << std::endl << "Global MPI information" << std::endl;
97 }
98#endif
99 }
void printMpiInfo(MPI_Info &mpiInfo)
Print all information of given MPI_Info object.
int MPI_Info_create(MPI_Info *info, const MString &name)
same as MPI_Info_create
◆ globalDomainId
◆ globalMpiInfo
const MPI_Info & globalMpiInfo |
( |
| ) |
|
|
friend |
◆ globalNoDomains
◆ m_globalDomainId
MInt GlobalMpiInformation::m_globalDomainId = 0 |
|
private |
◆ m_globalNoDomains
MInt GlobalMpiInformation::m_globalNoDomains = 1 |
|
private |
◆ m_mpiInfo
MPI_Info GlobalMpiInformation::m_mpiInfo = MPI_INFO_NULL |
|
private |
The documentation for this class was generated from the following file:
- /home/gitlab-runner/scratch/builds/oxpnswJ6/1/aia/m-AIA/m-AIA/src/COMM/globalmpiinfo.h