CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

OpenFOAM 14 Parallel build

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By mbeaudoin

Reply
 
LinkBack Thread Tools Display Modes
Old   May 8, 2007, 11:09
Default Hi all... I've been using Open
  #1
New Member
 
Mike Long
Join Date: Mar 2009
Location: Norman, OK, USA
Posts: 12
Rep Power: 8
mplongjr is on a distinguished road
Hi all... I've been using OpenFOAM 1.3 for several months now and I've been very impressed with it's capabilities. In the 1.4 release notes, there is mention of a parallel build process with wmake, but I can't find any mention of how to initiate it.

I naively tried ./Allwmake -j 2 .. but it didn't seem to use more than one process..

Is there something I'm missing?
mplongjr is offline   Reply With Quote

Old   May 8, 2007, 21:48
Default Mike, There is a new enviro
  #2
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 330
Rep Power: 13
mbeaudoin will become famous soon enough
Mike,

There is a new environment variable called $WM_NCOMPPROCS.

Check out the file $WM_DIR/wmake for the details.

The funny thing is: that variable is not initialized under OpenFOAM 1.4.

Just add the following line to your $WM_PROJECT_DIR/$FOAM_DOT_DIR/bashrc

export WM_NCOMPPROCS=2

Adjust the number to the number of processors you want to use for compiling.

(For csh, adjust your file $WM_PROJECT_DIR/$FOAM_DOT_DIR/cshrc

setenv WM_NCOMPPROCS 2
)

Enjoy,

Martin
lakeat likes this.
mbeaudoin is offline   Reply With Quote

Old   May 9, 2007, 11:28
Default Thanks Martin... that worked p
  #3
New Member
 
Mike Long
Join Date: Mar 2009
Location: Norman, OK, USA
Posts: 12
Rep Power: 8
mplongjr is on a distinguished road
Thanks Martin... that worked perfectly. I've been trying out some different optimizations with the pre-release GCC 4.2 and it really helps cutting the compile time down.

Mike
mplongjr is offline   Reply With Quote

Old   May 15, 2007, 03:32
Default You can also distribute parall
  #4
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
You can also distribute parallel builds. Works great on clusters. See the Wiki page about wmake.
mattijs is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 15 icc build mschoenberg OpenFOAM Installation 4 October 2, 2008 00:09
How can I build OpenFOAM in cygwin joywe OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 10 September 12, 2008 09:39
Build OpenFOAM on MacOSX Mauro Augelli (Augelli) OpenFOAM Installation 101 July 21, 2008 06:42
OpenFOAM build from source instructions tj22 OpenFOAM Installation 7 April 6, 2006 16:15
Build OpenFOAM on Tru64 francois OpenFOAM Installation 18 April 4, 2006 05:45


All times are GMT -4. The time now is 09:10.