Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646

Broadcasting multidimensional arrays

Anders_S_1
Novice
374 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