質問

MPI_Bcast (&buffer,count,datatype,root,comm)

The tutorial at https://computing.llnl.gov/tutorials/mpi/ says that count - Indicates the number of data elements of a particular type to be sent.

What does that mean? Does it mean that -

  1. count copies of the buffer array will be sent

    OR

  2. count elements of the buffer is to be sent?

役に立ちましたか?

解決

It's the second one. count elements of sizeof(datatype) will be sent.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top