Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-14 Thread John Hearns via users
Jeff, from what I read yesterday it is OpenMPI 2 , I am not sure of the minor version. I do acknowledge that Mahmood reports that the Rocks 7 beta is available - when I last used Rocks this was not avaiable. But still - look at something more up to date, such as OpenHPC. There is nothing

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-14 Thread Jeff Squyres (jsquyres)
Let me throw in one more item: I don't know what versions of Open MPI are available in those Rocks Rolls, but Open MPI v3.0.0 was released yesterday. You will be much better served with a modern version of Open MPI (vs. v1.4, the last release of which was in 2012). > On Sep 14, 2017, at

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-14 Thread Peter Kjellström
On Thu, 14 Sep 2017 19:01:08 +0900 Gilles Gouaillardet wrote: > Peter and all, > > an easier option is to configure Open MPI with > --mpirun-prefix-by-default this will automagically add rpath to the > libs. Yes that sorts out the OpenMPI libs but I was imagining

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-14 Thread Mahmood Naderan
Fortunately Rocks 7 beta is released. So, there is a hope that newer version will be born one day. >https://github.com/sdsc/mpi-roll I wasn't aware of that. Thanks for sharing it. >there is a typo, it should be >-Wl,-rpath,/.../ Thanks a lot. It is now

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-14 Thread John Hearns via users
Then let me add in my thoughts please.. Rocks is getting out of date. Mahmood, I would imagine that you are not given the choice of installing something more modern, ie the place where you work has an existing Rocks cluster and is unwilling to re-install it. So what is wrong with using the

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-14 Thread Mahmood Naderan
So it seems that -rpath is not available with 1.4 which is ompi came with rocks 6. Regards, Mahmood On Thu, Sep 14, 2017 at 2:44 PM, Mahmood Naderan wrote: > Well that may be good if someone intend to rebuild ompi. > Lets say, there is an ompi on the system... > >

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-14 Thread Peter Kjellström
On Thu, 14 Sep 2017 14:28:08 +0430 Mahmood Naderan wrote: > >In short, "mpicc -Wl,-rpath=/my/lib/path helloworld.c -o hello", will > >compile a dynamic binary "hello" with built in search path > >to "/my/lib/path". > > Excuse me... Is that a path or file? I get this: It

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-14 Thread Gilles Gouaillardet
Mahmood, there is a typo, it should be -Wl,-rpath,/.../ (note the minus before rpath) Cheers, Gilles On Thu, Sep 14, 2017 at 6:58 PM, Mahmood Naderan wrote: >>In short, "mpicc -Wl,-rpath=/my/lib/path helloworld.c -o hello", will >>compile a dynamic binary "hello" with

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-14 Thread Mahmood Naderan
Well that may be good if someone intend to rebuild ompi. Lets say, there is an ompi on the system... Regards, Mahmood On Thu, Sep 14, 2017 at 2:31 PM, Gilles Gouaillardet < gilles.gouaillar...@gmail.com> wrote: > Peter and all, > > an easier option is to configure Open MPI with

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-14 Thread Gilles Gouaillardet
Peter and all, an easier option is to configure Open MPI with --mpirun-prefix-by-default this will automagically add rpath to the libs. Cheers, Gilles On Thu, Sep 14, 2017 at 6:43 PM, Peter Kjellström wrote: > On Wed, 13 Sep 2017 20:13:54 +0430 > Mahmood Naderan

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-14 Thread Mahmood Naderan
>In short, "mpicc -Wl,-rpath=/my/lib/path helloworld.c -o hello", will >compile a dynamic binary "hello" with built in search path >to "/my/lib/path". Excuse me... Is that a path or file? I get this: mpif90 -g -pthread -Wl,rpath=/share/apps/computer/OpenBLAS-0.2.18 -o iotk_print_kinds.x

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-14 Thread Peter Kjellström
On Wed, 13 Sep 2017 20:13:54 +0430 Mahmood Naderan wrote: ... > `/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libc.a(strcmp.o)' > can not be used when making an executable; recompile with -fPIE and > relink with -pie collect2: ld returned 1 exit status > > >

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-13 Thread Mahmood Naderan
>are you sure you are using Open MPI ? I am using the openmpi shipped with Rocks 6 and trying to build Quantum ESPRESSO 6.1 >Beware: static linking is not for the meek. Agree! I found that I have to install compat-dapl-static.x86_64. As can be seen from the name, it is a compatibility library.

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-13 Thread Jeff Squyres (jsquyres)
Beware: static linking is not for the meek. Is there a reason you need to link statically? Be sure to read this FAQ item: https://www.open-mpi.org/faq/?category=mpi-apps#static-ofa-mpi-apps (note that that FAQ item was written a long time ago; it cites the "mthca" Mellanox obverts driver; the

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-13 Thread gilles
This is something related to DAPL. /* just google "libdat" */ iirc, Intel MPI uses that, but i do not recall Open MPI using it (!) are you sure you are using Open MPI ? which interconnect do you have ? Cheers, Gilles - Original Message - Thanks Gilles... That has been solved.

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-13 Thread Mahmood Naderan
Thanks Gilles... That has been solved. Another issue is mpif90 -g -pthread -static -o iotk_print_kinds.x iotk_print_kinds.o libiotk.a /usr/bin/ld: cannot find -ldat The name is actually hard to google! I cannot find the library name for "dat". Have you heard of that? There is not "libdat"

Re: [OMPI users] mpif90 unable to find ibverbs

2017-09-13 Thread gilles
Mahmood, since you are building a static binary, only static library (e.g. libibverbs.a) can be used. on your system, only dynamic libibverbs.so is available. simply install libibverbs.a and you should be fine. Best regards, Gilles - Original Message - Hi, I am trying to

[OMPI users] mpif90 unable to find ibverbs

2017-09-13 Thread Mahmood Naderan
Hi, I am trying to build an application with static linking that uses openmpi. in the middle of the build, I get this mpif90 -g -pthread -static -o iotk_print_kinds.x iotk_print_kinds.o libiotk.a /usr/bin/ld: cannot find -libverbs collect2: ld returned 1 exit status However, such library exists