Print all information of given MPI_Info object.
14 {
16
18 std::cerr << "MPI Info: nkeys = " << nkeys << std::endl;
19 for(i = 0; i < nkeys; i++) {
20 char key[MPI_MAX_INFO_KEY], value[MPI_MAX_INFO_VAL];
22
25 MPI_Info_get(mpiInfo, key, valuelen + 1, value, &flag, AT_);
26 std::cerr << "MPI Info: [" << i << "] key = " << key << ", value = " << value << std::endl;
27 }
28}
int MPI_Info_get(MPI_Info info, const char *key, int valuelen, char *value, int *flag, const MString &name)
same as MPI_Info_get
int MPI_Info_get_valuelen(MPI_Info info, const char *key, int *valuelen, int *flag, const MString &name)
same as MPI_Info_get_valuelen
int MPI_Info_get_nthkey(MPI_Info info, int n, char *key, const MString &name)
same as MPI_Info_get_nthkey
int MPI_Info_get_nkeys(MPI_Info info, int *nkeys, const MString &name)
same as MPI_Info_get_nkeys