Doing the `module load perfboost` sets the LD_LIBRARY_PATH. To see more, after doing the module load of both SGI modules, do an `ldd` on your app.

On 09/11/2014 03:40 PM, John Cary wrote:
Thanks much!

So does mpiexec_mpt then set the LD_LIBRARY_PATH as needed?

John

On 9/11/2014 1:27 PM, Michael Raymond wrote:
Another option is SGI PerfBoost. It will let you run apps compiled
against other ABIs with SGI MPT with practically no performance loss.

$ module load openmpi
$ make
$ module unload openmpi
$ module load mpt perfboost
$ mpiexec_mpt -np 2 perfboost -ompi a.out

On 09/11/2014 01:28 PM, JR Cary wrote:

We need to build an application on our machine with one mpi (e.g.
openmpi),
but for performance reasons, upon installation, we would like to runtime
link to a different, specialized mpi, such as an SGI implementation
provided
for their systems.

Can one expect this to work?

I tried this with openmpi and mpich, building the code against shared
openmpi
and then changing the LD_LIBRARY_PATH to point to the shared mpich. This
failed due to the sonames being different.

$ ldd foo  | grep mpi
     libmpi_usempi.so.1 => not found
     libmpi_mpifh.so.2 => not found
     libmpi.so.1 => not found
     libmpi_cxx.so.1 => not found

but in the mpich distribution one has different sonames

libmpi.so.12

so the runtime loader will not load the mpich libraries instead.

and the fortran libraries (which may not matter to us) have different
names,

$ \ls /contrib/mpich-shared/lib/*.so.12
/contrib/mpich-shared/lib/libmpicxx.so.12
/contrib/mpich-shared/lib/libmpifort.so.12
/contrib/mpich-shared/lib/libmpi.so.12

Is there a general approach to this?

Or in practice, must one build on a machine to use that machine's MPI?

Thx.....John Cary




_______________________________________________
users mailing list
us...@open-mpi.org
Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
Link to this post:
http://www.open-mpi.org/community/lists/users/2014/09/25311.php



_______________________________________________
users mailing list
us...@open-mpi.org
Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
Link to this post:
http://www.open-mpi.org/community/lists/users/2014/09/25316.php

--
Michael A. Raymond
SGI MPT Team Leader
1 (651) 683-7523

Reply via email to