<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1463993679754_22105">Hi,</div><div id="yui_3_16_0_ym19_1_1463993679754_22106"><br id="yui_3_16_0_ym19_1_1463993679754_22107"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22108">I am using 2 software, one is called Open Foam and the other called EMPIRE that need to run together at the same time.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22109">Open Foam uses Open MPI implementation and EMPIRE uses either MPICH or intel mpi.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22110">The version of Open MPI that comes with Open Foam is 1.6.5.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22111">I am using Intel (R) MPI Library for linux * OS, version 5.1.3 and MPICH 3.0.4.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22112"><br id="yui_3_16_0_ym19_1_1463993679754_22113"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22114">My problem is when I have the environment variables of either mpich or Intel MPI sourced to bashrc, I fail to run a case of Open Foam with parallel processing ( You find attached a picture of the error I got ) </div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22115">This is an example of a command line I use to run Open Foam</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22116">mpirun -np 4 interFoam -parallel</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22117"><br id="yui_3_16_0_ym19_1_1463993679754_22118"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22119">Once I keep the environment variable of OpenFoam only, the parallel processing works without any problem, so I won't be able to run EMPIRE.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22120"><br id="yui_3_16_0_ym19_1_1463993679754_22121"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22122">I am sourcing the environment variables in this way:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22123"><br id="yui_3_16_0_ym19_1_1463993679754_22124"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22125">For Open Foam:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22126">source /opt/openfoam30/etc/bashrc</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22127"><br id="yui_3_16_0_ym19_1_1463993679754_22128"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22129">For MPICH 3.0.4</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22130"><br id="yui_3_16_0_ym19_1_1463993679754_22131"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22132">export PATH=/home/islem/Desktop/mpich/bin:$PATH</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22133">export LD_LIBRARY_PATH="/home/islem/Desktop/mpich/lib/:$LD_LIBRARY_PATH"</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22134">export MPICH_F90=gfortran</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22135">export MPICH_CC=/opt/intel/bin/icc</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22136">export MPICH_CXX=/opt/intel/bin/icpc</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22137">export MPICH-LINK_CXX="-L/home/islem/Desktop/mpich/lib/ -Wl,-rpath -Wl,/home/islem/Desktop/mpich/lib -lmpichcxx -lmpich -lopa -lmpl -lrt -lpthread"</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22138"><br id="yui_3_16_0_ym19_1_1463993679754_22139"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22140">For intel</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22141"><br id="yui_3_16_0_ym19_1_1463993679754_22142"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22143">export PATH=$PATH:/opt/intel/bin/</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22144">LD_LIBRARY_PATH="/opt/intel/lib/intel64:$LD_LIBRARY_PATH"</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22145">export LD_LIBRARY_PATH</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22146">source /opt/intel/compilers_and_libraries_2016.3.210/linux/mpi/intel64/bin/mpivars.sh intel64</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22147"><br id="yui_3_16_0_ym19_1_1463993679754_22148"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22149">If Only Open Foam is sourced, mpirun --version gives OPEN MPI (1.6.5)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22150">If Open Foam and MPICH are sourced, mpirun --version gives mpich 3.0.1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22151">If Open Foam and intel MPI are sourced, mpirun --version gives intel (R) MPI libarary for linux, version 5.1.3 </div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22152"><br id="yui_3_16_0_ym19_1_1463993679754_22153"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22154">My question is why I can't have two MPI implementation installed and sourced together. How can I solve the problem ?</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22155"><br id="yui_3_16_0_ym19_1_1463993679754_22156"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22157">Regards,</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463993679754_22158">Islem Megdiche</div></div></body></html>