CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

Parallel programming

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 30, 2010, 07:15
Default Parallel programming
  #1
New Member
 
Gareth
Join Date: Apr 2010
Location: Sydney Aus
Posts: 4
Rep Power: 7
gharek is on a distinguished road
Hi guys,

I just have a simple question. I have got a code written in Fortran in serial. The maximum matrix size that I can go to is about 2 mil (in 3D). I wish to run more due to the huge size of the problem.

I have been looking around for some MPI tutorials and I still do not know what to do. Are there any better tutorials particularly suited for CFD applications?

I am thinking along the following lines:
1. breaking up my domain to different processors
2. each processor will solve one domain (or mesh) and
3. every processor will communicate with each other to update variable values

From what i know, MPI will help me. But im not sure how or where to start.

Thanks in advance.
gharek is offline   Reply With Quote

Old   June 2, 2010, 14:31
Default
  #2
New Member
 
Ertan Karaismail
Join Date: Apr 2009
Posts: 17
Rep Power: 8
ertan is on a distinguished road
Check out the IBM red book. It might be useful for you.
http://www.redbooks.ibm.com/abstracts/sg245380.html
ertan is offline   Reply With Quote

Old   June 4, 2010, 08:15
Default
  #3
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 10
DoHander is on a distinguished road
A simple approach will be to directly parallelize your serial code using OpenMP (check the official site for some good tutorials). Also if you want to be able to use more then 2GB of RAM per application you will need to 64 bits operating system (Windows or Linux both will do as long as you have the 64 bits version and ... plenty of RAM).

Also, the Fortran compiler you use will make a huge difference: Intel Fortran fast, gfortran will do (and it is free) ...

Do
DoHander is offline   Reply With Quote

Old   June 9, 2010, 08:12
Default MPI Tutorial
  #4
Member
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 34
Rep Power: 8
valgrinda is on a distinguished road
Hei,

try these tutorials and lectures notes form the University of Edinburgh. Their material is excellent for starting with MPI.

http://www.epcc.ed.ac.uk/library/doc...tion/training/

While OpenMP seems tempting in the beginning, MPI is definitely the way to go for high performance computing. In the long run, using MPI will definitely pay off.

Regards
Hans
valgrinda is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to Run Parallel Jobs in Rocks Cluster asaha OpenFOAM Running, Solving & CFD 12 July 4, 2012 22:51
HP MPI warning...Distributed parallel processing Peter CFX 10 May 14, 2011 06:17
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
PROBLEM IN PARALLEL PROGRAMMING WITH MPI Niavarani Main CFD Forum 1 April 20, 2004 06:51
Parallel Computing Classes at San Diego Supercomputer Center Jan. 20-22 Amitava Majumdar Main CFD Forum 0 January 5, 1999 13:00


All times are GMT -4. The time now is 06:09.