Re: [OMPI users] MPI_Init seems to hang, but works after a minute or two

2014-10-27 Thread Marco Atzeri

On 10/27/2014 8:32 AM, maxinator333 wrote:

Hello,


After compiling and running a MPI program, it seems to hang at
MPI_Init(), but it eventually will work after a minute or two.

While the problem occured on my Notebook it did not on my desktop PC.


It can be a timeout on a network interface.
I see a similar issue with wireless ON but not with wireless OFF
on my notebook.

In the past I saw with some virtual driver of Telecom company
for the 3G driver.


Both run on Win 7, cygwin 64 Bit, OpenMPI version 1.8.3 r32794
(ompi_info), g++ v 4.8.3. I actually synced the cygwin installations
later on, and it still didn't work, but it did for a short time after a
restart...


Regards
Marco


Re: [OMPI users] MPI_Init seems to hang, but works after a, minute or two

2014-10-27 Thread maxinator333



Hello,


After compiling and running a MPI program, it seems to hang at
MPI_Init(), but it eventually will work after a minute or two.

While the problem occured on my Notebook it did not on my desktop PC.

It can be a timeout on a network interface.
I see a similar issue with wireless ON but not with wireless OFF
on my notebook.

In the past I saw with some virtual driver of Telecom company
for the 3G driver.


Both run on Win 7, cygwin 64 Bit, OpenMPI version 1.8.3 r32794
(ompi_info), g++ v 4.8.3. I actually synced the cygwin installations
later on, and it still didn't work, but it did for a short time after a
restart...

Regards
Marco


Thank you :)
Deactivating my WLAN did indeed the trick!
It also seems to not work, if a LAN-cable is plugged in. No difference 
if I am correctly connected (to the internet/gateway) or not (wrong IP, 
e.g. static given IP instead of mandatory DHCP)

Again: deactivating the relevant LAN helps
It seems, that in contrast to LAN, for WLAN it makes a difference, if 
I'm connected to some network or not. If not connected, it seems to 
work, without deactivating the whole hardware.


Re: [OMPI users] MPI_Init seems to hang, but works after a, minute or two

2014-10-28 Thread Jeff Squyres (jsquyres)
On Oct 27, 2014, at 1:25 PM, maxinator333  wrote:

> Deactivating my WLAN did indeed the trick!
> It also seems to not work, if a LAN-cable is plugged in. No difference if I 
> am correctly connected (to the internet/gateway) or not (wrong IP, e.g. 
> static given IP instead of mandatory DHCP)
> Again: deactivating the relevant LAN helps
> It seems, that in contrast to LAN, for WLAN it makes a difference, if I'm 
> connected to some network or not. If not connected, it seems to work, without 
> deactivating the whole hardware.

If you're only running on a single machine, you can deactivate the network 
transports in Open MPI and only used the shared memory transport.  That should 
allow you to run without deactivating any hardware.  E.g.

mpirun --mca btl sm,self ...

-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/



Re: [OMPI users] MPI_Init seems to hang, but works after a, minute or two

2014-10-28 Thread maxinator333

It doesn't seem to work. (switching off wlan still works)
mpicc mpiinit.c -o mpiinit.exe; time mpirun --mca btl sm,self -n 2 
./mpiinit.exe


real0m43.733s
user0m0.888s
sys 0m0.824s

Am 28.10.2014 13:40, schrieb Jeff Squyres (jsquyres):

On Oct 27, 2014, at 1:25 PM, maxinator333  wrote:


Deactivating my WLAN did indeed the trick!
It also seems to not work, if a LAN-cable is plugged in. No difference if I am 
correctly connected (to the internet/gateway) or not (wrong IP, e.g. static 
given IP instead of mandatory DHCP)
Again: deactivating the relevant LAN helps
It seems, that in contrast to LAN, for WLAN it makes a difference, if I'm 
connected to some network or not. If not connected, it seems to work, without 
deactivating the whole hardware.

If you're only running on a single machine, you can deactivate the network 
transports in Open MPI and only used the shared memory transport.  That should 
allow you to run without deactivating any hardware.  E.g.

 mpirun --mca btl sm,self ...





Re: [OMPI users] MPI_Init seems to hang, but works after a, minute or two

2014-10-28 Thread Jeff Squyres (jsquyres)
On Oct 28, 2014, at 9:02 AM, maxinator333  wrote:

> It doesn't seem to work. (switching off wlan still works)
> mpicc mpiinit.c -o mpiinit.exe; time mpirun --mca btl sm,self -n 2 
> ./mpiinit.exe
> 
> real0m43.733s
> user0m0.888s
> sys 0m0.824s

Ah, this must be an ORTE issue, then (i.e., the run-time system beneath the MPI 
layer).

Try specifying that ORTE should use the loopback interface:

mpirun --mca btl sm,self --mca oob_tcp_if_include lo ...

(actually, I don't know what the loopback interface is called on Windows; it's 
typically "lo" in Linux 2.6 kernels...)

-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/