Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] bulding rpm
From: rahmani (m_rahmani56_at_[hidden])
Date: 2009-07-09 13:35:13

----- Original Message -----
From: "Jeff Squyres" <jsquyres_at_[hidden]>
To: "Open MPI Users" <users_at_[hidden]>
Sent: Thursday, July 9, 2009 10:10:30 AM (GMT-0500) America/New_York
Subject: Re: [OMPI users] bulding rpm

On Jul 9, 2009, at 10:22 AM, rahmani wrote:

> yes, they are intel library and all are in LD_LIBRARY_PATH
> /usr/local/openmpi/intel/1.3.2/bin/mpif90 --showme
> gfortran -I/usr/local/include -pthread -I/usr/local/lib -L/usr/local/
> lib -lmpi_f90 -lmpi_f77 -lmpi -lopen-rte -lopen-pal -ldl -Wl,--
> export-dynamic -lnsl -lutil -lm -ldl
> ldd /usr/local/openmpi/intel/1.3.2/bin/mpirun
> => (0x00007fff555fd000)
> => /usr/local/lib/
> (0x00007fa64d154000)
> => /usr/local/lib/
> (0x00007fa64cef2000)
> => /lib64/ (0x00007fa64ccee000)
> => /lib64/ (0x00007fa64cad6000)
> => /lib64/ (0x00007fa64c8d3000)
> => /lib64/ (0x00007fa64c67d000)
> => /lib64/ (0x00007fa64c466000)
> => /lib64/ (0x00007fa64c24a000)
> => /lib64/ (0x00007fa64bef1000)
> /lib64/ (0x00007fa64d3b2000)
> I had another openmpi in my computer. I configure openmpi 1.3 with
> gnu compiler and --prefix=/usr/local
> I can not use both of them?

You can; you just need to set your LD_LIBRARY_PATH appropriately.

Specifically, when you run "mpirun" (or "mpif90" or ..."), it looks to
find The first one that it is finding is the "wrong"
one -- the one in /usr/local. You therefore get "wrong" results
because it's behaving like the one installed in /usr/local.

You can probably prefix your LD_LIBRARY_PATH with /usr/local/openmpi/
intel/1.3.2/lib and then it'll use the "right"

Make sense?

Jeff Squyres
Cisco Systems
users mailing list
very thanks for your help
i set LD_LIBRARY_PATH=/opt/intel/Compiler/11.0/069/lib/intel64/ 
then when I use mpif90 and mpirun with full path it works correctly:
ifort: command line error: no files specified; for help type "ifort -help"
 /usr/local/openmpi/intel/1.3.2/bin/mpirun -np 2 hostname
Thanks you
With best regards