|
[Sponsors] |
Can not run OpenFOAM in parallel in clusters, help! |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 10, 2013, 16:49 |
Can not run OpenFOAM in parallel in clusters, help!
|
#1 |
Member
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14 |
Hi guys,
I am trying to run openfoam in a cluster. I use the following script to run icoFoam in parallel using 16 CPUs. I can get the simulation running, but it seems that the openfoam does not run in "real parallel", instead, the case is run by 16 times. Code:
#! /bin/csh #BSUB -W 5 #BSUB -n 16 #BSUB -R "em64t span[ptile=1]" source /XXXX/foam171.csh blockMesh reconstructPar mpiexec_hydra icoFoam reconstructPar #BSUB -o /foamo.%J #BUSB -e /foame.%J Code:
mpirun -n 16 icoFoam Code:
mpirun -n 16 icoFoam -parallel Now I am using the cluster, I can not use "mpirun" command, I must use "mpiexec_hydra" instead, so how can I add something like "-parallel" into mpiexec_hydra command, which will let openfoam perform correct parallel calculation?? Many thanks! |
|
April 11, 2013, 13:54 |
|
#2 | |
Senior Member
Vieri Abolaffio
Join Date: Jul 2010
Location: Always on the move.
Posts: 308
Rep Power: 17 |
Quote:
have you tried the -n 16 switch? mpiexec_hydra -n 16 icoFoam I'm not sure it will work though have you tried the man or help file? mpiexec_hydra --help |
||
April 14, 2013, 15:23 |
|
#3 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,091
Rep Power: 34 |
Hi,
Just my thoughts: Quote:
So have you tried: Code:
mpiexec_hydra -n 16 icoFoam -parallel |
||
April 15, 2013, 12:39 |
|
#4 | |
Member
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14 |
Quote:
Thanks for your reply! I have try "mpiexec_hydra -n 16 icoFoam", I got the following error message: Code:
which: invalid option -- n Usage: which [options] [--] programname [...] Options: --version, -[vV] Print version and exit successfully. --help, Print this help and exit successfully. --skip-dot Skip directories in PATH that start with a dot. --skip-tilde Skip directories in PATH that start with a tilde. --show-dot Don't expand a dot to current directory in output. --show-tilde Output a tilde for HOME directory for non-root. --tty-only Stop processing options on the right if not on tty. --all, -a Print all matches in PATH, not just the first --read-alias, -i Read list of aliases from stdin. --skip-alias Ignore option --read-alias; don't read stdin. --read-functions Read shell functions from stdin. --skip-functions Ignore option --read-functions; don't read stdin. Not Found: (2 mpiexec_hydra) |
||
April 15, 2013, 12:42 |
|
#5 | |
Member
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14 |
Quote:
I have tried it but it does not work. But you gave me a good suggestion, I am not trying to add -parallel option to icoFoam, instead of mpiexec. But still not know where should I add it. |
||
May 6, 2014, 15:25 |
|
#6 |
Member
India
Join Date: Oct 2012
Posts: 84
Rep Power: 14 |
Hi ripperjack,
Did you find any solution to your problem? I am facing the same problem. Regards, Mayank. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Parallel processing of OpenFOAM cases on multicore processor??? | g.akbari | OpenFOAM Running, Solving & CFD | 31 | November 1, 2017 09:25 |
Case running in serial, but Parallel run gives error | atmcfd | OpenFOAM Running, Solving & CFD | 18 | March 26, 2016 12:40 |
Interfoam blows on parallel run | danvica | OpenFOAM Running, Solving & CFD | 16 | December 22, 2012 02:09 |
interDyMFoam, problems in mesh motion solutor run in parallel | DLC | OpenFOAM | 11 | December 11, 2012 02:20 |
parallel processing- linux clusters | manoj s | FLUENT | 2 | June 20, 2007 18:48 |