Re: [OMPI users] Symbol _mpi_get_address0dr4_ not found when using OSX + gfortran + mpif90

2013-06-02 Thread Gustavo Correa
Hi Derek

Since your mpif90 is installed in /opt/local/lib/openmpi/bin/mpif90
shouldn't the openmpi libraries be located in /opt/local/lib/openmpi/lib,
rather than /opt/local/lib that your "--showme" shows?
I wonder if this is an environment variable problem 
(PATH and LD_LIBRARY_PATH/DYLD_LIBRARY_PATH),
in a system with multiple versions of OpenMPI installed.

I hope it helps,
Gus Correa

On Jun 2, 2013, at 5:21 PM, Derek Teaney wrote:

> Hi,
> 
> 1) 
> I am getting a frustrating message having to 
> do with  linking a simple  fortran program
> 
> Typing 
> 
> /opt/local/lib/openmpi/bin/mpif90 tmp.f
> 
> Yields with gfortran.
> 
> Undefined symbols for architecture x86_64:
>  "_mpi_get_address0dr4_", referenced from:
>  _MAIN__ in ccGWs06E.o
> ld: symbol(s) not found for architecture x86_64
> collect2: error: ld returned 1 exit status
> 
> I have attached the program, which runs fine on a linux box
> 
> 
> 2)  The --showme gives
> 
> /opt/local/bin/gfortran-mp-4.8 -I/opt/local/include/openmpi 
> -Wl,-commons,use_dylibs -I/opt/local/lib -L/opt/local/lib -lmpi_usempi 
> -lmpi_mpifh -lmpi
> 
> Using gfortran-4.7 makes no difference.  
> 
> 3)  Examining the file  /opt/local/lib/libmpi_usempi.dylib with
> 
> nm libmpi_usempi.dylib | grep 'address0dr4_'
> 
> gives
> 
> 0bf0 T _mpi_address0dr4_
> 
> 
> Something I'm missing …. but shouldn't that be mpi_get_address0dr4_
> 
> 4/  Changing the USE mpi   command to 
> 
> include 'mpif.h' works just fine.
> 
> Shouldn't they be identical.
> 
> 
> 
> 
> 
> Derek Teaney
> Dept. of Physics & Astronomy
> SUNY at Stony Brook
> Stony Brook, NY 11794-3800
> Tel: (631) 632-4489
> Fax: (631) 632-9718
> e-mail: derek.tea...@stonybrook.edu
> 
> 
> 
> 
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users




[OMPI users] Symbol _mpi_get_address0dr4_ not found when using OSX + gfortran + mpif90

2013-06-02 Thread Derek Teaney
Hi,

1) 
 I am getting a frustrating message having to 
 do with  linking a simple  fortran program

Typing 

/opt/local/lib/openmpi/bin/mpif90 tmp.f

Yields with gfortran.

Undefined symbols for architecture x86_64:
  "_mpi_get_address0dr4_", referenced from:
  _MAIN__ in ccGWs06E.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

I have attached the program, which runs fine on a linux box


test_usempi.f
Description: Binary data


2)  The --showme gives

/opt/local/bin/gfortran-mp-4.8 -I/opt/local/include/openmpi 
-Wl,-commons,use_dylibs -I/opt/local/lib -L/opt/local/lib -lmpi_usempi 
-lmpi_mpifh -lmpi

Using gfortran-4.7 makes no difference.  

3)  Examining the file  /opt/local/lib/libmpi_usempi.dylib with

nm libmpi_usempi.dylib | grep 'address0dr4_'

gives

0bf0 T _mpi_address0dr4_


Something I'm missing …. but shouldn't that be mpi_get_address0dr4_

4/  Changing the USE mpi   command to 

include 'mpif.h' works just fine.

Shouldn't they be identical.



test_mpifh.f
Description: Binary data




Derek Teaney
Dept. of Physics & Astronomy
SUNY at Stony Brook
Stony Brook, NY 11794-3800
Tel: (631) 632-4489
Fax: (631) 632-9718
e-mail: derek.tea...@stonybrook.edu






Re: [OMPI users] I got "ssh_exchange_identification" errors when I mpirun over 1500 times almost at the same time

2013-06-02 Thread Sabuj Pattanayek
I've seen this problem before, when trying to scp a file from one host
to many others. It's some race condition in tcp wrappers. Can you
disable /etc/hosts.deny ? If you need to protect SSH or other ports
use iptables.

On Sat, Jun 1, 2013 at 1:43 PM, vacate  wrote:
> Hello everybody,
>
> I'm a beginner in Open MPI world.
> Maybe it's a simple problem, but I cannot figure out what happen on it...
>
> My situation is
> I use 4 hosts totally, and their IP address are static.
> I can't do mpirun over 1500 times almost at the same time.
> (but it's always okay less than 1000 times)
> I got many "ssh_exchange_identification: connection closed by remote host"
> errors.
>
> --
> My Open MPI version : 1.6.2
> --
> I use a simple bash shell script file to run my Open MPI file(named
> openMPI_test)
> Here is my script content :
>
> for (( index=0; index<2000 ; index++))
>do
>(time mpirun --hostfile my_hostfile openMPI_test &) >> file 2>&1
>done
>
>
> p.s.1 "my_hostfile" file lists 4 hosts' IP address.
> p.s.2 "openMPI_test" file ask each host do the same thing, it means:
>   if(rank == 0){  for(i=0 ; i<65535 ; i++)temp = i/(i+1);  }
>   else if(rank == 1){  for(i=0 ; i<65535 ; i++)temp =
> i/(i+1);  }
>   else if(rank == 2){  for(i=0 ; i<65535 ; i++)temp =
> i/(i+1);  }
>   else if(rank == 3){  for(i=0 ; i<65535 ; i++)temp =
> i/(i+1);  }
> --
>
> At the first, I thought I have some system problems,
> so I tried to modify my /etc/ssh/sshd_config file.
> I set Max_Sessions up to 65535, and MaxStartups up to 65535,
> but the result made me so sad because it still didn't work :((
>
> I'm not sure if there are some settings or limits in Open MPI,
> or I just have another system problems?
>
> I really hope someone can help me..
> Thank you all very very much!!
>
>
>
> Best Wishes,
> Jen
>
>
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users


Re: [OMPI users] I got "ssh_exchange_identification" errors when I mpirun over 1500 times almost at the same time

2013-06-02 Thread Ralph Castain
I would suspect you are hitting limits on the number of open sockets - check 
your limits settings on file descriptors.

On Jun 1, 2013, at 11:43 AM, vacate  wrote:

> Hello everybody,
> 
> I'm a beginner in Open MPI world.
> Maybe it's a simple problem, but I cannot figure out what happen on it...
> 
> My situation is
> I use 4 hosts totally, and their IP address are static.
> I can't do mpirun over 1500 times almost at the same time.
> (but it's always okay less than 1000 times)
> I got many "ssh_exchange_identification: connection closed by remote host" 
> errors.
> 
> --
> My Open MPI version : 1.6.2
> --
> I use a simple bash shell script file to run my Open MPI file(named 
> openMPI_test)
> Here is my script content :
> 
> for (( index=0; index<2000 ; index++))
>do
>(time mpirun --hostfile my_hostfile openMPI_test &) >> file 2>&1
>done
> 
> 
> p.s.1 "my_hostfile" file lists 4 hosts' IP address.
> p.s.2 "openMPI_test" file ask each host do the same thing, it means:
>   if(rank == 0){  for(i=0 ; i<65535 ; i++)temp = i/(i+1);  }
>   else if(rank == 1){  for(i=0 ; i<65535 ; i++)temp = 
> i/(i+1);  }
>   else if(rank == 2){  for(i=0 ; i<65535 ; i++)temp = 
> i/(i+1);  }
>   else if(rank == 3){  for(i=0 ; i<65535 ; i++)temp = 
> i/(i+1);  }
> --
> 
> At the first, I thought I have some system problems,
> so I tried to modify my /etc/ssh/sshd_config file.
> I set Max_Sessions up to 65535, and MaxStartups up to 65535,
> but the result made me so sad because it still didn't work :((
> 
> I'm not sure if there are some settings or limits in Open MPI,
> or I just have another system problems?
> 
> I really hope someone can help me..
> Thank you all very very much!!
> 
> 
> 
> Best Wishes,
> Jen
> 
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users