Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] MPI_BCAST and fortran subarrays
From: Edmund Sumbar (esumbar_at_[hidden])
Date: 2011-12-12 14:29:07


The interface to MPI_Bcast does not specify a assumed-shape-array dummy
first argument. Consequently, as David points out, the compiler makes a
contiguous temporary copy of the array section to pass to the routine. If
using ifort, try the "-check arg_temp_created" compiler option to verify
creation of temporary arrays.

On Mon, Dec 12, 2011 at 11:28 AM, David Warren
<warren_at_[hidden]>wrote:

> I do similar things using ifort and it creates temporary arrays when
> necessary and it all works.