MPI_LB, MPI_UB and MPI_Type_struct have been deprecated since MPI-2 and were removed in MPI-3 ( https://www.mpi-forum.org/docs/mpi-3.1/mpi31-report/node34.htm). It is trivial to replace MPI_Type_struct with MPI_Type_create_struct. Replacing MPI_UB and MPI_LB with MPI_Type_create_resized but it is the right thing to do.
If you are struck with an older version of HDF5, you may need to maintain a fork with patches for the aforementioned issues in order to use recent releases of MPI. Jeff On Thu, Oct 11, 2018 at 8:01 AM Patrick Begou < patrick.be...@legi.grenoble-inp.fr> wrote: > Hi Jeff and George > > thanks for your answer. I find some time to work again on this problem > dans I > have downloaded OpenMPI 4.0.0rc4. It compiles without any problem but > building > the first dependance of my code (hdf5 1.8.12) with this version 4 fails: > > ../../src/H5Smpio.c:355:28: error: 'MPI_LB' undeclared (first use in this > function); did you mean 'MPI_IO'? > old_types[0] = MPI_LB; > ^~~~~~ > MPI_IO > ../../src/H5Smpio.c:355:28: note: each undeclared identifier is reported > only > once for each function it appears in > ../../src/H5Smpio.c:357:28: error: 'MPI_UB' undeclared (first use in this > function); did you mean 'MPI_LB'? > old_types[2] = MPI_UB; > ^~~~~~ > MPI_LB > ../../src/H5Smpio.c:365:24: warning: implicit declaration of function > 'MPI_Type_struct'; did you mean 'MPI_Type_size_x'? > [-Wimplicit-function-declaration] > mpi_code = MPI_Type_struct(3, /* count */ > ^~~~~~~~~~~~~~~ > MPI_Type_size_x > > It is not possible for me to use a more recent hdf5 version as the API as > changed and will not work with the code, even in compatible mode. > > At this time, I'll try version 3 from the git repo if I have the required > tools > available on my server. All prerequisites compile successfully with 3.1.2. > > Patrick > > -- > =================================================================== > | Equipe M.O.S.T. | | > | Patrick BEGOU | mailto:patrick.be...@grenoble-inp.fr | > | LEGI | | > | BP 53 X | Tel 04 76 82 51 35 | > | 38041 GRENOBLE CEDEX | Fax 04 76 82 52 71 | > =================================================================== > > _______________________________________________ > users mailing list > users@lists.open-mpi.org > https://lists.open-mpi.org/mailman/listinfo/users > -- Jeff Hammond jeff.scie...@gmail.com http://jeffhammond.github.io/
_______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users