|
[Sponsors] |
OpenFOAM with Inifiband & parallel efficiency |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 11, 2011, 13:53 |
OpenFOAM with Inifiband & parallel efficiency
|
#1 |
New Member
Join Date: Oct 2010
Posts: 24
Rep Power: 16 |
Hi foamers,
I feel mad about my extremely slow parallel computing efficiency. I have modified channelFoam to perform DNS of pipe flow. The mesh is around 4 million. Each node has 8cores, but I only use 4 cores in each node. Because I found when I use 6cores or 8cores each node, the computing time does not less than 4 cores each node. What is more, when I use 6 nodes, that is 24 cores, the computing time almost the same as the 20 cores. I don't know why. The interconnect of my cluster is infiniband. I know from other thread that the parallel efficiency and scallability of IB are better than GigE and 10GigE, but the OpenFOAM shouled be recompiled. Unfortunately, I don't know wheather my recompiling procedure is right: • Modify OpenFOAM-1.6/etc/bashrc to use MPI entry rather OPENMPI (WM_MPLIB:=MPI). • Change MPI entry within settings.sh to system OpenMPI (export MPI_HOME=/usr/mpi/gcc/openmpi-1.4.2). • Add the following to wmake/rules/linux64Gcc/mplib PFLAGS= -DOMPI_SKIP_MPICXX PINC = -I$(MPI_ARCH_PATH)/include PLIBS = -L$(MPI_ARCH_PATH)/lib64 –lmpi Then ./Allwmake in ThirdParty directory and OpenFOAM-1.7.1 After that, I performed parallel simulation, but error occured: bash: orted: Command not found Any one can help me? Thank you very much in advance. |
|
June 14, 2011, 04:38 |
|
#2 |
Member
Gregor Olenik
Join Date: Jun 2009
Location: http://greole.github.io/
Posts: 89
Rep Power: 17 |
Hi,
you have changed from openMPI to MPI, but do you have MPI libraries installed correctly ? Since it cant find orted it is either not there or the path variable is not set properly. gregor |
|
June 15, 2011, 02:52 |
|
#3 |
New Member
Join Date: Oct 2010
Posts: 24
Rep Power: 16 |
Hi, gregor. Somenone told me another method to use infiniband. If it works, I will let you know
|
|
June 16, 2011, 03:27 |
|
#4 | |
Member
Yong Wang
Join Date: Apr 2009
Posts: 34
Rep Power: 17 |
Quote:
I am doing DNS with a code based on OF. For a mesh with 128*128*128 cells, the speedup of 4096 processors is about 1000. I am also testing with a finer mesh and wish to obtain a better scalability. |
||
June 16, 2011, 05:59 |
|
#5 |
New Member
Join Date: Oct 2010
Posts: 24
Rep Power: 16 |
Hi, ywang. Can you post you code in the forum? Now, I don't know whether my mpi works with infiniband? One friend suggests me that recompile OpenFOAM, and use system's openmpi rather than OF's. But when I recompile, error occured. Later, I will post the error information in the forum
|
|
June 16, 2011, 06:11 |
|
#6 | |
Member
Yong Wang
Join Date: Apr 2009
Posts: 34
Rep Power: 17 |
Quote:
the solvers you used before are the re-compiled solvers from other place? Anyway, I suggest you use the local mpi and recompile the OF. |
||
June 16, 2011, 19:27 |
|
#7 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,291
Rep Power: 35 |
Quote:
If you are using 128x128x128 mesh, it is very likely that you are using cartesian mesh. Why are you using openFOAM for it?? You can write yourself a 100 times faster solver than openFOAM for it since direct solution to poisson problem in uniform cartesian mesh is available. Or I am mistaken and your mesh is not cartesian?? |
||
June 16, 2011, 19:44 |
|
#8 | |
Member
Yong Wang
Join Date: Apr 2009
Posts: 34
Rep Power: 17 |
Quote:
I am using unstructured mesh for complex geometry. The 128x128x128 mesh is non-uniform and used for the benchmark channel flow. |
||
June 23, 2011, 02:16 |
|
#9 | |
New Member
Join Date: Oct 2010
Posts: 24
Rep Power: 16 |
Quote:
1 mpirun -np 16 --hostfile machine --mca btl self,openib dnsPisoFoam -parallel 2 mpirun -np 16 --hostfile machine --mca btl self,tcp dnsPisoFoam -parallel 3 mpirun -np 16 --hostfile machine dnsPisoFoam -parallel The first and the third means cost almost the same time, while the second mean costs more time But still the scalability cannot be improved. |
||
June 23, 2011, 02:19 |
|
#10 |
New Member
Join Date: Oct 2010
Posts: 24
Rep Power: 16 |
The mesh of my case is 130 million. Running 50000 timesteps, it costs almost a week. Too long time.
|
|
June 23, 2011, 03:01 |
|
#11 | |
Member
Yong Wang
Join Date: Apr 2009
Posts: 34
Rep Power: 17 |
Quote:
|
||
June 23, 2011, 04:48 |
|
#12 |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,291
Rep Power: 35 |
||
June 23, 2011, 04:55 |
|
#13 |
Member
Yong Wang
Join Date: Apr 2009
Posts: 34
Rep Power: 17 |
||
June 23, 2011, 05:30 |
|
#14 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,291
Rep Power: 35 |
Quote:
I really doubt it. I tried running a 130 million case with 32 processors (with my software NOT openFOAM) and if I could manage 5000 steps in 1 week I would gladly take it. I really doubt openFOAM is faster than my solver. |
||
June 23, 2011, 06:05 |
|
#15 |
New Member
Join Date: Oct 2010
Posts: 24
Rep Power: 16 |
I am sorry for my fault. My mesh is 1.3 million, and per time step costs 8s. I use 24 cores ,because after 24cores, the computing time cost doesnot decrease with the increase of cores
|
|
June 23, 2011, 06:10 |
|
#16 | |
New Member
Join Date: Oct 2010
Posts: 24
Rep Power: 16 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Large test case for running OpenFoam in parallel | fhy | OpenFOAM Running, Solving & CFD | 23 | April 6, 2019 10:55 |
Parallel run of OpenFOAM in linux and windows side by side | m2montazari | OpenFOAM Running, Solving & CFD | 5 | June 24, 2011 04:26 |
Parallel solution in OpenFOAM | makaveli_lcf | OpenFOAM Running, Solving & CFD | 0 | September 21, 2009 09:07 |
OpenFoam parallel crashes at random | prapanj | OpenFOAM Running, Solving & CFD | 3 | April 22, 2009 08:49 |
OpenFOAM Training and Workshop Zagreb 2628Jan2006 | hjasak | OpenFOAM | 1 | February 2, 2006 22:07 |