Download shared library in open-mpi / mpi mode

I am trying to run my program using a torque scheduler using mpi run. Although in my pbs file I load the whole library

export LD_LIBRARY_PATH=/path/to/library

but it gives an error, i.e.

error while loading shared libraries: libarmadillo.so.3: 
cannot open shared object file: No such file or directory. 

I assume that the error lies in the variable LD_LIBRARY_PATH, not set in all nodes. How can I make it work?

+5
source share
2 answers

LD_LIBRARY_PATHnot exported automatically to MPI processes spawned mpirun. You have to use

mpirun -x LD_LIBRARY_PATH ...

to click the value LD_LIBRARY_PATH. Also make sure that the specified path exists on all nodes of the cluster and that it libarmadillo.so.3is accessible everywhere.

+16
source

mpirun. .bashrc.

+3

All Articles