|
[Sponsors] |
December 5, 2007, 18:09 |
OpenMP,MPI and dual core
|
#1 |
Guest
Posts: n/a
|
Hi,
I've some confusion regarding OpenMP,MPI and dual/quad core processors. Hence, I hope experts out there can help me answer...Btw, I'm using fortran to write my own CFD code. 1. If I've a dual/quad core processor, does it mean that using OpenMP or MPI on my code can make it run faster? e.g. thru using multiple threads during looping. 2. Is OpenMP better (faster/easier) than MPI on multiple core processors, esp if it's only a dual or quad core on a single chip? 3. Will the time taken to solve a system of equations arising from poisson/momentum eqns be reduced if I'm using a dual/quad core? Is there such linear sparse solver available? I was told that the current solver which I use (PETSc) 'll not have much improvement since it uses the whole memory bandwidth. Hence it 'll not work well on shared memory processors. Thank you very much |
|
December 7, 2007, 00:19 |
Re: OpenMP,MPI and dual core
|
#2 |
Guest
Posts: n/a
|
Hello,
I'll try to answer your questions based on my knowledge. 1) Yes, on a dual/quad core machine using OpenMP or MPI should make the code run faster (considering a reasonably well written code). The advantage of MPI on a shared machine is that no communication will be required via interconnect. If 4 cores/processors is the max you want to use for your application, OpenMP should be sufficient. For more than 4 processors, OpenMP is not known to scale well in many applications. 2) Can't say if OpenMP is better than MPI on 4 cores, but I think OpenMP is easier to implement than MPI. There are compiler options that invoke multiple threads during execution (just like OpenMP) and you can use this as a start if you have no prior experience in OpenMP. 3) Aztec is a parallel linear equation solver developed by Sandia National Lab. This is not as exhaustive as PETSc and might be an answer to your memory bandwidth problem. |
|
December 7, 2007, 20:29 |
Re: OpenMP,MPI and dual core
|
#3 |
Guest
Posts: n/a
|
Ok Thanks. I'll take a look at Aztec, although the site seems to be down now.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Dual Xeon PIV 3.8Ghz vs 2x Dual Core E5130 2.0 GHz | Michiel | Hardware | 4 | July 31, 2009 07:06 |
Questions about CPU's: quad core, dual core, etc. | Tim | FLUENT | 0 | February 26, 2007 15:02 |
Core 2 Duo vc. Dual Core Xeon 3060 | Jan | Main CFD Forum | 6 | February 20, 2007 07:21 |
How many CFX licenses for dual core processors? | km | CFX | 12 | September 8, 2006 16:18 |