CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Running parallel hangs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 4, 2015, 18:25
Default Running parallel hangs
  #1
pki
New Member
 
Piotr Kuna
Join Date: Jun 2015
Posts: 8
Rep Power: 10
pki is on a distinguished road
Hi.

I have used openfoam a few days. Got some tutorials to run on my ubuntu workstation. I managed to run the solver on 4 cores on my workstation. Now i am trying to run over the network on two workstations. The second is ubuntu too. Installed the same version (2.4.0). All path are identical. Some testcases solved on the second workstation so it's working fine.

I interchanged the ssh keys so i can connect between both workstations freely without passwords. Username is the same.

As i try to run the solver via mpirun or foamJob it's starting, but seems to hand at the beginning. The processes on the both workstations are starting, cpu load goes as expected. But the output freeze here:


Code:
piotr@biuro-4:~/OpenFOAM/piotr-2.4.0/run/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D$ foamJob -s -p compressibleInterFoam
Parallel processing using SYSTEMOPENMPI with 2 processors
Executing: /usr/bin/mpirun -np 2 -hostfile machines -x FOAM_SETTINGS /opt/openfoam240/bin/foamExec -prefix /opt compressibleInterFoam -parallel | tee log
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.4.0-f0842aea0e77
Exec   : compressibleInterFoam -parallel
Date   : Jun 05 2015
Time   : 00:12:50
Host   : "biuro-4"
PID    : 22797
^Cmpirun: killing job...
Until i press Ctrl-C.

I go down to two cores, one on each machine, no difference.

I have mounted the ~/OpenFOAM/piotr-2.4.0/run directory via nfs share to the second workstatoon on the same path. Running ls -l via mpi gives expected result.

Code:
piotr@biuro-4:~/OpenFOAM/piotr-2.4.0/run/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge3D$ mpirun --hostfile machines -np 2 ls -l
total 4512
drwxr-xr-x 2 piotr piotr    4096 Jun  4 00:38 0
-rwxr-xr-x 1 piotr piotr     240 May 30 15:57 Allclean
-rwxr-xr-x 1 piotr piotr     492 May 30 15:57 Allrun
-rw-rw-r-- 1 piotr piotr 2377766 Jun  4 11:28 bubble.ogv
drwxr-xr-x 3 piotr piotr    4096 May 30 15:57 constant
-rw-rw-r-- 1 piotr piotr 2190057 Jun  4 10:46 depthCharge3D.ogv
-rw-rw-r-- 1 piotr piotr       0 Jun  4 10:08 foam.foam
-rwxrwxr-x 1 piotr piotr      55 Jun  4 00:22 go
-rw-rw-r-- 1 piotr piotr     702 Jun  5 00:12 log
-rw-rw-r-- 1 piotr piotr     702 Jun  4 23:00 log.txt
-rw-rw-r-- 1 piotr piotr      16 Jun  5 00:08 machines
drwxrwxr-x 4 piotr piotr    4096 Jun  5 00:08 processor0
drwxrwxr-x 4 piotr piotr    4096 Jun  5 00:08 processor1
drwxr-xr-x 2 piotr piotr    4096 May 30 15:57 system
total 4512
drwxr-xr-x 2 piotr piotr    4096 Jun  4 00:38 0
-rwxr-xr-x 1 piotr piotr     240 May 30 15:57 Allclean
-rwxr-xr-x 1 piotr piotr     492 May 30 15:57 Allrun
-rw-rw-r-- 1 piotr piotr 2377766 Jun  4 11:28 bubble.ogv
drwxr-xr-x 3 piotr piotr    4096 May 30 15:57 constant
-rw-rw-r-- 1 piotr piotr 2190057 Jun  4 10:46 depthCharge3D.ogv
-rw-rw-r-- 1 piotr piotr       0 Jun  4 10:08 foam.foam
-rwxrwxr-x 1 piotr piotr      55 Jun  4 00:22 go
-rw-rw-r-- 1 piotr piotr     702 Jun  5 00:12 log
-rw-rw-r-- 1 piotr piotr     702 Jun  4 23:00 log.txt
-rw-rw-r-- 1 piotr piotr      16 Jun  5 00:08 machines
drwxrwxr-x 4 piotr piotr    4096 Jun  5 00:08 processor0
drwxrwxr-x 4 piotr piotr    4096 Jun  5 00:08 processor1
drwxr-xr-x 2 piotr piotr    4096 May 30 15:57 system

Can you help me? What have i missed?
pki is offline   Reply With Quote

Old   June 6, 2015, 04:48
Default
  #2
pki
New Member
 
Piotr Kuna
Join Date: Jun 2015
Posts: 8
Rep Power: 10
pki is on a distinguished road
OK, solved this problem by self. I had multiple IP adresses on the first workstation. It was a communication issue. As i removed the other subnets from my network interface it started to work now :-)
pki is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error while running in parallel using openmpi on local mc 6 processors suryawanshi_nitin OpenFOAM 10 February 22, 2017 21:33
Running mapFields with Parallel Source and Parallel Target RDanks OpenFOAM Pre-Processing 4 August 2, 2016 05:24
running OpenFoam in parallel vishwa OpenFOAM Running, Solving & CFD 22 August 2, 2015 08:53
error when running in parallel, but succeed in a single core. sharonyue OpenFOAM Running, Solving & CFD 1 December 12, 2014 13:24
Problems running in parallel - missing controlDict Argen OpenFOAM Running, Solving & CFD 4 June 7, 2012 03:50


All times are GMT -4. The time now is 08:59.