Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.

Broadcasting multidimensional arrays

Anders_S_1
Novice
506 Views

Hi,

I am using MPI for parallelization. I want to broadcast a multidimensional array. Is there today a way to do this directly?

If not, is it possible to broadcast by using DO-loops?

Example

The integer array a(m,n) shall be broadcasted. Will this work?

DO i=1,m

  CALL MPI_BCAST(a(i,1:n),n,MPI_INTEGER8,0,MPI_COMM_WORLD,ierr)

ENDDO

If yes, can I broadcast in the same way for dimensions above 2?

Best regards

Anders S

0 Kudos
0 Replies
Reply