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

parallel fortran code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2008, 18:18
Default parallel fortran code
  #1
Ahmed
Guest
 
Posts: n/a
Hi all,

Can some one guide me to parallelize a fortran sequential code?

Thanks
  Reply With Quote

Old   October 23, 2008, 08:15
Default Re: parallel fortran code
  #2
Jed
Guest
 
Posts: n/a
Please try to give some details and be specific about what you want. F90/95 have some parallel intrinsics, but you'll probably want to use OpenMP if you're interested in shared-memory parallelism. (Some compilers can even figure some limited cases out automatically.) Annotating for parallelism with OpenMP is normally very easy, profile to see what takes time and annotate those loops. Depending on the memory requirements of the work-load, shared memory parallelism could give you no speedup or nearly optimal speedup for a few processors.

For larger scale or memory-limited workloads, you'll want to use distributed memory which means MPI (though perhaps using a library like PETSc). If want to do this, now would be a very good time to consider a major redesign of your program (though you should be able to reuse core parts like flux computations).
  Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Discontinuous Galerkin schemes -- fortran source code diedro Main CFD Forum 3 March 12, 2011 11:20
is there any parallel code for the famous Lid Driven Cavity flow? gholamghar Main CFD Forum 0 August 1, 2010 02:55
fortran code problem ztdep Main CFD Forum 5 September 8, 2009 05:22
Fortran 90 faster than C/C++ B. R. Guirguis Main CFD Forum 48 March 6, 2006 14:49
Speeding my Fortran Code S Main CFD Forum 11 March 31, 2005 15:50


All times are GMT -4. The time now is 16:28.