Those features (MPI_LB/MPI_UB/MPI_Type_struct) were removed in MPI-3.0. It is
fairly straightforward to update the code to be MPI-3.0 compliant.
MPI_Type_struct -> MPI_Type_create_struct
MPI_LB/MPI_UB -> MPI_Type_create_resized
Example:
types[0] = MPI_LB;
disp[0] = my_lb;
lens[0] = 1;
types[1] = MPI_INt;
disp[1] = disp1;
lens[1] = count;
types[2] = MPI_UB;
disp[2] = my_ub;
lens[2] = 1;
MPI_Type_struct (3, lens, disp, types, &new_type);
becomes:
types[0] = MPI_INt;
disp[0] = disp1;
lens[0] = count;
MPI_Type_create_struct (1, lens, disp, types, &tmp_type);
MPI_Type_create_resized (tmp_type, my_lb, my_ub, &new_type);
MPI_Type_free (&tmp_type);
-Nathan
On Oct 11, 2018, at 09:00 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
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users