|
[Sponsors] |
September 4, 2009, 05:17 |
How to compile OF with another Mpi
|
#1 |
Senior Member
|
Hi Foamers,
I would like to compile OF with an OpenMPI version different from the one included in the Third Party, as I use other home-made parallel codes that work with a system installation of OpenMPI libraries. The standard OF installation overwrites the $MPI_HOME and $MPI_ARCH_PATH variables, so the system installation is switched off. Is there any simple workaround to tell OF to use my system installation? Actually I'm obliged to create a separate openfoam user on my system, but I would prefer to use OF and my other codes from a single user. I use OpenFOAM-1.6.x under a SLAMD64 Linux distro. Thanks, Ivan |
|
September 29, 2009, 12:43 |
|
#2 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34 |
I think $MPI_HOME and $MPI_ARCH_PATH variables are set in '$WM_PROJECT_DIR/etc/settings.sh' about two-thirds of the way down:
case "$WM_MPLIB" in OPENMPI) #mpi_version=openmpi-1.3.3 mpi_version=openmpi-1.2.6 export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version export MPI_ARCH_PATH=$MPI_HOME/platforms/$WM_OPTIONS # Tell OpenMPI where to find its install directory export OPAL_PREFIX=$MPI_ARCH_PATH _foamAddPath $MPI_ARCH_PATH/bin _foamAddLib $MPI_ARCH_PATH/lib export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version unset mpi_version ;; You could probably change these to where your system OpenMPI is installed, just a suggestion not sure if it will work. Philip |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 06:05 |
Error compile file udf | czfluent | Fluent UDF and Scheme Programming | 24 | September 26, 2009 13:24 |
Error using LaunderGibsonRSTM on SGI ALTIX 4700 | jaswi | OpenFOAM | 2 | April 29, 2008 10:54 |
Is Testsuite on the way or not | lakeat | OpenFOAM Installation | 6 | April 28, 2008 11:12 |
MPI and parallel computation | Wang | Main CFD Forum | 7 | April 15, 2004 11:25 |