CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM 14 Parallel build (https://www.cfd-online.com/Forums/openfoam-installation/57543-openfoam-14-parallel-build.html)

mplongjr May 8, 2007 11:09

Hi all... I've been using Open
 
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.. http://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif

Is there something I'm missing?

mbeaudoin May 8, 2007 21:48

Mike, There is a new enviro
 
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

mplongjr May 9, 2007 11:28

Thanks Martin... that worked p
 
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

mattijs May 15, 2007 03:32

You can also distribute parall
 
You can also distribute parallel builds. Works great on clusters. See the Wiki page about wmake.


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