[mpich-discuss] help with hybrid programming of OPenMP and MPI

Jeff Hammond jhammond at alcf.anl.gov
Tue Jul 31 17:44:43 CDT 2012

Read the Intel Fortran compiler manual for Windows to see what the
appropriate flag to use to enable OpenMP is.  This is not in any way
related to MPICH2, by the way.

You will get the appropriate MPI options by using the MPI wrapper
scripts once you've build MPICH2 appropriately using the Intel

You should be able to extend the canonical cpi test to use OpenMP
rather trivially (especially since you work at a software company) to
verify that your build is correct.


On Tue, Jul 31, 2012 at 12:53 PM, Dingjun Chen <Dingjun.Chen at cmgl.ca> wrote:
> HI, guys,
> I will begin to work on the hybrid programming of OpenMP and MPI to
> improve our software products. Our software products are implemented
> using FORTRAN.   Could someone tell me more information on the following
> questions?
> 1.  Currently I am using Intel Fortran compiler "ifort.exe", please tell
> me how to configure the ' makefile' so that ifort.exe can simultaneously
> build the hybrid OpenMP and MPI codes. By the way, MPICH is installed on
> my computer under Window 7.
> 2. Could someone tell me where I can get some typical instances of the
> hybrid MPI and OPenMP codes? I need to test if the hybrid programming
> environment on my computer works well with those instances.
> Thanks indeed in advance.
> Dingjun Chen
> Computer Modelling Group Ltd.
> Calgary, Alberta,
> Canada

Jeff Hammond
Argonne Leadership Computing Facility
University of Chicago Computation Institute
jhammond at alcf.anl.gov / (630) 252-5381

More information about the mpich-discuss mailing list