Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] MPI_Init() and MPI_Init_thread()
From: Anthony Chan (chan_at_[hidden])
Date: 2010-03-04 11:52:37


----- "Yuanyuan ZHANG" <zhang.yuanyuan_at_[hidden]> wrote:

> For an OpenMP/MPI hybrid program, if I only want to make MPI calls
> using the main thread, ie., only in between parallel sections, can I just
> use SINGLE or MPI_Init?

If your MPI calls is NOT within OpenMP directives, MPI does not even
know you are using threads. So calling MPI_Init is good enough.

A.Chan