intel / mpi-benchmarks

145 stars 63 forks source link

IMB is not compiled with OpenMPI 4.0 #7

Closed dkuzmin72 closed 5 years ago

dkuzmin72 commented 5 years ago

OpenMPI 4.0 removed support of depricated MPI_UB and MPI_LB types. That's why IMB cannot be compiled with OpenMPI: IMB_init_transfer.c: In function ‘IMB_init_transfer’: /ompi4.0/include/mpi.h:1102:53: error: ‘ompi_mpi_lb’ undeclared (first use in this function)

define MPI_LB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_lb)

IMB_init_transfer.c:177:39: note: in expansion of macro ‘MPI_LB’ bllen[0]=1; displ[0] = 0; types[0] = MPI_LB;

The same error is for MPI_UB.

Command line: make -f make_mpich MPI_HOME=/ompi4.0

BTW: Why do you reset MPI_HOME? OpenMPI usually sets this environment variable and it should work as simple as: make -f make_mpich

It's here: $head -3 make_mpich (comment) Enter root directory of mpich install MPI_HOME=

Regards! ---Dmitry

dkuzmin72 commented 5 years ago

Please commit changes from https://github.com/intel/mpi-benchmarks/pull/6. It should resolve the issue.

gpaulsen commented 5 years ago

@ykiryano Would it be possible to commit this soon to allow IMB to be MPI 3.0 standards conforming? (i.e. not use removed MPI1 datatypes)

ykiryano commented 5 years ago

Yes, it will be updated soon. We are planning to upgrade code to IMB 2019 product version soon and then to apply your fix there. Sorry for delay.