If you only have mpich, mpic++ is using mpich for the compilation. For it to use openmpi you should compile it in the compute nodes.
On Wed, May 6, 2015 at 4:41 PM, Fany Pages Diaz <[email protected]> wrote: > I compiled this way *mpic++ -openmp prime_number.mpi.C -o example*, > that's wrong? > how it's made? > > > -----Original Message----- > From: Carlos Fenoy <[email protected]> > To: "slurm-dev" <[email protected]> > Date: Wed, 06 May 2015 07:27:31 -0700 > Subject: [slurm-dev] Re: Error while loading shared libraries > > Then you can not execute a binary compiled with MPICH in the compute > nodes. If you want to execute on the compute nodes you have to compile the > binary with openmpi > > On Wed, May 6, 2015 at 4:23 PM, Fany Pagés Díaz <[email protected] > > wrote: > >> This library is on a server and has all the permits, although in the >> nodes is not found. I nodes openmpi-1.5.4-2 is installed. >> >> * De:* Carlos Fenoy [mailto: [email protected]] >> *Enviado el:* miércoles, 06 de mayo de 2015 10:11 >> *Para:* slurm-dev >> *Asunto:* [slurm-dev] Re: Error while loading shared libraries >> >> Do you have mpi installed on all the cluster nodes? >> >> On Wed, May 6, 2015 at 3:34 PM, Uwe Sauter < [email protected]> >> wrote: >> >> >> Check the file permissions for libmpichcxx.so.1.2 as well as the >> permissions on the parent directories. Might be that you are not >> allowed to access the folder structure as the user you're running your >> application. >> >> >> >> Am 06.05.2015 um 07:57 schrieb Fany Pagés Díaz: >> > Hello, >> > >> > WhenI throw a MPI job on slurm I get this error, Any can help me? >> thanks you >> > >> > >> > >> > [root@cluster bin]# srun -N4 numeroprimos >> > >> > /usr/bin/numeroprimos: error while loading shared libraries: >> libmpichcxx.so.1.2: cannot open shared object file: No such file or >> > directory >> > >> > >> > >> > Untitled Document >> > >> > 50 Aniversario de la Cujae. Inaugurada por Fidel el 2 de diciembre de >> 1964 http://cujae.edu.cu <http://cujae.edu.cu > >> > >> > >> >> >> >> >> -- >> -- >> Carles Fenoy >> 50 Aniversario de la Cujae. Inaugurada por Fidel el 2 de diciembre >> de 1964 http://cujae.edu.cu >> >> > > > -- > -- > Carles Fenoy > > 50 Aniversario de la Cujae. Inaugurada por Fidel el 2 de diciembre de > 1964 http://cujae.edu.cu > > -- -- Carles Fenoy
