LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: seberino_at_[hidden]
Date: 2003-08-02 16:13:21


I've done a lot of Fortran90 MPI AllGather's with
1D arrays and I understand that.

Is an allgather possible to give every node a complete
copy of this 2D array that is spread out over all the nodes???

Node Number What part of array "a" it has
=================================================

0 a(1,1), a(1,2), a(1,3) (i.e. a(1,1-3))
1 a(2,1), a(2,2), a(2,3) (i.e. a(2,1-3))
2 a(3,1), a(3,2), a(3,3) (i.e. a(3,1-3))
3 a(4,1), a(4,2), a(4,3) (i.e. a(4,1-3))

4 a(1,4), a(1,5), a(1,6) (i.e. a(1,4-6))
5 a(2,4), a(2,5), a(2,6) (i.e. a(2,4-6))
6 a(3,4), a(3,5), a(3,6) (i.e. a(3,4-6))
7 a(4,4), a(4,5), a(4,6) (i.e. a(4,4-6))

I've heard about column-major order and row-major order
but always forget which one is C and which one Fortran90
uses.

I could switch order of indices on a if it would help.

Any help would be greatly appreciated.

Sincerely,

Chris

_______________________________________

Christian Seberino, Ph.D.
SPAWAR Systems Center San Diego
Code 2872
49258 Mills Street, Room 158
San Diego, CA 92152-5385
U.S.A.

Phone: (619) 553-9973
Fax : (619) 553-6521
Email: seberino_at_[hidden]
_______________________________________