Am 02.04.2012 um 09:56 schrieb Rohan Deshpande: > Yes, I am trying to run the program using multiple hosts. > > The program executes fine but does not use any slaves when I run > > mpirun -np 8 hello --hostfile slaves > > The program throws error saying shared libraries not found when I run > > mpirun --hostfile slaves -np 8
a) As Rayson mentioned: the libraries are available on the slaves? b) It might be necassary to export an LD_LIBRARY_PATH in you .bashrc or forward the variable by Open MPI to point to the location of the libraries. c) It could also work to create a static version of Open MPI by --enable-static --disable-shared and recompile the application. -- Reuti > > > On Mon, Apr 2, 2012 at 2:52 PM, Rayson Ho <raysonlo...@gmail.com> wrote: > On Sun, Apr 1, 2012 at 11:27 PM, Rohan Deshpande <rohan...@gmail.com> wrote: > > error while loading shared libraries: libmpi.so.0: cannot open shared > > object file no such object file: No such file or directory. > > Were you trying to run the MPI program on a remote machine?? If you > are, then make sure that each machine has the libraries installed (or > you can install Open MPI on an NFS directory). > > Rayson > > ================================= > Open Grid Scheduler / Grid Engine > http://gridscheduler.sourceforge.net/ > > Scalable Grid Engine Support Program > http://www.scalablelogic.com/ > > > > > > When I run using - mpirun -np 1 ldd hello the following libraries are not > > found > > 1. libmpi.so.0 > > 2. libopen-rte.so.0 > > 3. libopen.pal.so.0 > > > > I am using openmpi version 1.4.5. Also PATH and LD_LIBRARY_PATH variables > > are correctly set and 'which mpicc' returns correct path > > > > Any help would be highly appreciated. > > > > Thanks > > > > > > > > > > > > > > _______________________________________________ > > users mailing list > > us...@open-mpi.org > > http://www.open-mpi.org/mailman/listinfo.cgi/users > > _______________________________________________ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users > > > > -- > > Best Regards, > > ROHAN DESHPANDE > > > > _______________________________________________ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users