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

Is this meaningful to run parallel in this way?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2009, 06:59
Default Is this meaningful to run parallel in this way?
  #1
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Hi Forum,

Bcoz I have difficulties to insert "-parallel" option to my supercomputer (They did not let me execute mpirun command directly), so I am trying the possible solution like this:

Suppose I have a 4-cores Intel CPU personal computer,
Can I execute the mpirun command without "-parallel" option (without decomposePar first), like this:
mpirun -np 4 `which icoFoam` -case $FOAM_RUN/tutorials/icoFoam/cylinder > log &


Is this meaningful? Please help.. Thank you.
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   May 13, 2009, 09:04
Default
  #2
kbr
New Member
 
Kerstin
Join Date: Mar 2009
Posts: 16
Rep Power: 17
kbr is on a distinguished road
Hi,

this means you run your case as a single case 4 times on 4 CPUs. I think that's not what you want to do.

Kerstin
kbr is offline   Reply With Quote

Old   May 13, 2009, 09:30
Default
  #3
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Okay, how then can I achieve this goal??
I am using a super computer managed by lsf system, instead execute
Code:
mpirun -np 4 icoFoam -parallel > log &;
everytime I need to do:
Code:
bsub ./c.lsf
to submit my case to the queue. where, c.lsf file is:
Code:
APP_NAME=snode
NP=16
RUN="`which icoFoam` -case /home/users/temp/OpenFOAM/temp-1.5/run/tutorials/icoFoam/cylinder -parallel > log"
and then it stops with complains as shown in log file:
Code:
attempt to run parallel on 1 processor.....FOAM aborting...
This error is very annoying! Since the lsf system will dynamically appoint 16 nodes to do the job (so I think It's not available to appoint host names by "-hostfile machines"), and lsf cannot correctly pass the "-parallel" option, regarding this as an attempt to run parallel on 1 processor!!!!!!

What can I do? Please
The question is now "How to use lsf system to manage the foam Job"
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   May 13, 2009, 10:40
Default
  #4
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
I know in Fluent, there's option "-lsf" and "-mpi=", eg.
bsub -I fluent 3d -lsf
but OpenFOAM, only gives a "-parallel" option, is is possible to provide such more convenient option?
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat 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
Script to Run Parallel Jobs in Rocks Cluster asaha OpenFOAM Running, Solving & CFD 12 July 4, 2012 22:51
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
Parallel Run on dynamically mounted partition braennstroem OpenFOAM Running, Solving & CFD 14 October 5, 2010 14:43
MPICH Parallel Run Error on the Windows Server2003 Saturn CFX 3 August 29, 2006 08:42
Windows 64-bit, Distributed Parallel Run Issues... Erich CFX 3 March 28, 2006 16:36


All times are GMT -4. The time now is 21:15.