|
[Sponsors] |
February 11, 2015, 17:11 |
Error when using mpirun for parallel case
|
#1 |
New Member
Mike Foster
Join Date: Feb 2015
Posts: 12
Rep Power: 11 |
I have been working through the depthCharge2D tutorial on Win8 using cygwin. I have run decomposePar, and then I run the following to initiate the solve process...
Code:
mpirun -np 4 compressibleInterFoam -parallel > log.compress Code:
--> FOAM FATAL ERROR: bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor From function UPstream::init(int& argc, char**& argv) in file UPstream.C at line 79. FOAM aborting Code:
mpicc -o hello_c hello_c.c mpirun -np 4 ./hello_c Thoughts? Last edited by mfoster; February 11, 2015 at 19:05. Reason: Additional background info on my troubleshooting effort |
|
February 13, 2015, 10:04 |
|
#2 |
Senior Member
|
Just for making sure everything went well before the installation was supposed to start, please check the following:
Did the decomposition succeed, i.e. did you have folders processor0 to processor3 in your case-directory afterwards? If not, please check system/decomposeParDict for the correct decomposition settings. Otherwise: Do you have four processors available at all? Does parallel execution of jobs in general work on your machine? Please simply check with one of the parallel-tutorials, e.g. the incompressible/simpleFoam/motorBike case by using nothing but the Allrun-script. This way we see if your machine is setup correctly. It should take not more than ten minutes and will exclude at least one potential reason for the failure. This might seem to be silly questions, but sometimes one misses the simplest things... Cheers, Bernhard |
|
February 14, 2015, 17:18 |
|
#3 |
New Member
Mike Foster
Join Date: Feb 2015
Posts: 12
Rep Power: 11 |
Thank you for your suggestions...I'll get to those either Monday or Tuesday.
In some of my other troubleshooting, I realized wmake wasn't working. Would this make a difference? I added a source to the etc/bashrc into my home .bashrc that I also realized I needed. When I did this, the wmake command worked, but I lost access to all the solvers!? So, I'll need to add a PATH to the solvers into to .bashrc. |
|
February 16, 2015, 11:06 |
|
#4 |
New Member
Mike Foster
Join Date: Feb 2015
Posts: 12
Rep Power: 11 |
Ok, I copied the motorbike tutorial to my home directory then ran Allrun. Here is what was displayed in the terminal window:
Code:
cp: cannot stat ‘/resources/geometry/motorBike.obj.gz’: No such file or directory Running surfaceFeatureExtract on /home/Mike/motorBike Running blockMesh on /home/Mike/motorBike Running decomposePar on /home/Mike/motorBike Running snappyHexMesh in parallel on /home/Mike/motorBike using 6 processes Running patchSummary in parallel on /home/Mike/motorBike using 6 processes Running potentialFoam in parallel on /home/Mike/motorBike using 6 processes Running simpleFoam in parallel on /home/Mike/motorBike using 6 processes Running reconstructParMesh on /home/Mike/motorBike Running reconstructPar on /home/Mike/motorBike Note: when I run "which icoFoam" the path given is... /opt/OpenFOAM/OpenFOAM-2.3.x/platforms/cygwin64mingw-w64DPOpt/bin/icoFoam Can you give me some direction? Thanks! |
|
February 16, 2015, 11:55 |
|
#5 |
Senior Member
|
Hi,
About a problem with "/resources/geometry/motorBike.obj.gz", do you have FOAM_TUTORIALS environment variable set? As Allrun file starts with Code:
cp $FOAM_TUTORIALS/resources/geometry/motorBike.obj.gz constant/triSurface/ Code:
mpirun -np 4 "compressibleInterFoam -parallel" > log.compress |
|
February 16, 2015, 16:07 |
|
#6 |
New Member
Mike Foster
Join Date: Feb 2015
Posts: 12
Rep Power: 11 |
Alexey,
Yes, once I add... Code:
source /opt/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc Code:
Running surfaceFeatureExtract on /home/Mike/motorBike Running blockMesh on /home/Mike/motorBike Running decomposePar on /home/Mike/motorBike Running snappyHexMesh in parallel on /home/Mike/motorBike using 6 processes Running patchSummary in parallel on /home/Mike/motorBike using 6 processes Running potentialFoam in parallel on /home/Mike/motorBike using 6 processes Running simpleFoam in parallel on /home/Mike/motorBike using 6 processes Running reconstructParMesh on /home/Mike/motorBike Running reconstructPar on /home/Mike/motorBike Code:
icoFoam -help -bash: icoFoam: command not found I then tried adding... Code:
PATH=/opt/OpenFOAM/OpenFOAM-2.3.x/platforms/cygwin64mingw-w64DPOpt/bin:${PATH} Code:
icoFoam.exe -help /opt/OpenFOAM/OpenFOAM-2.3.x/platforms/cygwin64mingw-w64DPOpt/bin/icoFoam.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory I'm happy to change/move things around if necessary |
|
February 17, 2015, 03:15 |
|
#7 |
Senior Member
|
Hi,
Well, in fact Allrun script may fail, look in the log-files it created. For example here's Allrun script which tries to execute non-existent utilities: Code:
#!/bin/sh cd ${0%/*} || exit 1 # run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions runApplication blockMeshD runApplication setFieldsD Code:
alexey at daphne in cavity$ ./Allrun Running blockMeshD on $FOAM_RUN/cavity Running setFieldsD on $FOAM_RUN/cavity Code:
$HOME/OpenFOAM/OpenFOAM-2.3.0/bin/tools/RunFunctions: line 52: blockMeshD: command not found Also I a little bit mess up messages. In fact this message Code:
--> FOAM FATAL ERROR: bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor |
|
February 17, 2015, 10:34 |
|
#8 |
New Member
Mike Foster
Join Date: Feb 2015
Posts: 12
Rep Power: 11 |
It looks like a few of the log files have the following error:
Code:
--> FOAM FATAL ERROR: bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor From function UPstream::init(int& argc, char**& argv) in file UPstream.C at line 79. FOAM aborting http://www.cfdsupport.com/install-op...r-windows.html ...and also added the nano, openmpi, and libopenmpi-devel packages. |
|
February 17, 2015, 10:53 |
|
#9 |
Senior Member
|
Hi,
I think this http://www.cfd-online.com/Forums/ope...pport-com.html is somehow relevant to your case (or you've already read it, as it is third links in Google search on 'cfdsupport openfoam openmpi'?). Guess the problem with missing libraries is that you're trying to execute applications in parallel with OpenMPI while applications were compiled with MS MPI. |
|
February 18, 2015, 09:52 |
|
#10 |
New Member
Mike Foster
Join Date: Feb 2015
Posts: 12
Rep Power: 11 |
Alexey,
That was it! (I may/may not have read that post, but at the time I don't think I would have understood the implications of what was mentioned.) I also emailed CFD-support and received some feedback. For this particular package, mpiexec.exe takes the place of mpirun. So, for the depthCharge tutorial, it would be... Code:
mpiexec.exe -n 4 compressibleInterFoam.exe -parallel > log.compress Thanks! |
|
July 7, 2015, 13:28 |
|
#11 | |
New Member
chaitanya bhatraju
Join Date: Jun 2015
Posts: 7
Rep Power: 11 |
thanks it helped really
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressure instabilities with interDyMFoam for the floatingObject case | nbadano | OpenFOAM Running, Solving & CFD | 15 | October 15, 2021 07:35 |
[DesignModeler] DesignModeler Scripting: How to get Full Command Access | ANT | ANSYS Meshing & Geometry | 53 | February 16, 2020 16:13 |
Is Playstation 3 cluster suitable for CFD work | hsieh | OpenFOAM | 9 | August 16, 2015 15:53 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Turbulent Flat Plate Validation Case | Jonas Larsson | Main CFD Forum | 0 | April 2, 2004 11:25 |