7#ifndef MAIA_GLOBALMPIINFO_H
8#define MAIA_GLOBALMPIINFO_H
38 MPI_Info_set(
m_mpiInfo,
"nc_header_align_size",
"10240");
42#if !defined(WITH_HDF5) && defined(MPI_IO_OPT) && defined(HOST_HAZELHEN)
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");
55 MPI_Info_set(
m_mpiInfo, (
char*)
"ind_wr_buffer_size", (
char*)
"16777216");
57 MPI_Info_set(
m_mpiInfo, (
char*)
"striping_factor", (
char*)
"64");
59 MPI_Info_set(
m_mpiInfo, (
char*)
"cb_nodes", (
char*)
"128");
63#if defined(MPI_IO_OPT) && defined(HOST_Hawk)
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
77 <<
"NOTE: disabling ROMIO hints romio_cb_read/write to avoid PNetcdf/Hdf5 memory allocation issues "
80 <<
"NOTE: see comment at " << AT_ << std::endl
81 <<
"NOTE: undefine MPI_IO_OPT to turn off the ROMIO hint changes." << std::endl
92#ifdef MPI_IO_PRINT_INFO
95 std::cerr << std::endl <<
"Global MPI information" << std::endl;
MInt globalNoDomains()
Return global number of domains.
MInt globalDomainId()
Return global domain id.
const MPI_Info & globalMpiInfo()
Return global MPI information.
void printMpiInfo(MPI_Info &mpiInfo)
Print all information of given MPI_Info object.
GlobalMpiInformation g_mpiInformation
int MPI_Info_create(MPI_Info *info, const MString &name)
same as MPI_Info_create