cea-hpc / wi4mpi

Wrapper interface for MPI
BSD 3-Clause "New" or "Revised" License
80 stars 15 forks source link

Symbol size warning in preload mode, with OpenMPI as from family #69

Closed kevin-juilly closed 8 months ago

kevin-juilly commented 9 months ago
Symbol `ompi_mpi_comm_null' has different size in shared object, consider re-linking

The size of the predefined communicators changed over time in openmpi. Starting with v1.3.2, those got a fixed size based on a macro named PREDEFINED_COMMUNICATOR_PAD. From v1.3.2 to v1.10.7 it was (sizeof(void*) * 128). In all versions 2.x.x, it was (sizeof(void*) * 192). In versions 3.0.x, it was (sizeof(void*) * 64). Since version 3.1.0, it is hard-coded as 512.

In wi4mpi, we made them 1024 bytes long, which correspond to a 64 bit build of openmpi v1 since the pad exists. This message can be ignored (we only care about the address of the symbol, not its size in preload mode) but it could worry users.

I propose to pass it to 512 bytes in wi4mpi, it should remove the warning.

Any disagreement?

adrien-cotte commented 8 months ago

Seems great to me, thx for looking into this old subject.