software-layer icon indicating copy to clipboard operation
software-layer copied to clipboard

Add OpenMPI host injection script

Open agimenog opened this issue 6 months ago • 9 comments

Hi,

We are creating a new PR because we don't have the right permissions to push into the previous one: https://github.com/EESSI/software-layer/pull/963/

We have removed the maxdepth option in order to make the script copy all the needed libs. Now to make it work you should run the script following the next example: sh software-layer-mpi/scripts/mpi_support/install_openmpi_host_injection.sh --mpi-path /support/home/multixs/.local/easybuild/software/OpenMPI/4.1.5-GCC-12.3.0/

With this we have tried to run an OSU benchmark and it worked as expected: `srun -p short -n 2 --mpi=pmix --nodelist=node001,node002 /support/home/multixs/pull-963/osu-micro-benchmarks-7.3/c/mpi/pt2pt/standard/osu_latency

OSU MPI Latency Test v7.3 Size Latency (us) Datatype: MPI_CHAR. 1 40.29 2 38.29 4 36.31 8 32.60 16 32.89 32 32.59 64 32.61 128 36.76 256 43.53 512 51.78 1024 62.63 2048 143.23`

If the result is okay for you we can start working to change the patchelf options in order to make it work with symlinks.

Also, we would like to know if there's any place where we can document how to use the script and compile the software with the injected mpi libraries.

We will like also to mention that when we tried the same workflow with OpenMPI/5.0.7-GCC-14.2.0 the MPI injection failed, we are currently working to fix it.

Regards, Arturo.

agimenog avatar May 19 '25 07:05 agimenog