int shp [1] = {4} ; Procs p(1, shp) ;
Creates a one-dimensional process array representing a linear set of 4 processes. The active process group must contain at least 4 processes when the declaration of p is encountered.
int shp [4] = {2, 2, 2, 2} ; Procs h(4, shp) ;
Creates a process array representing a 4-dimensional binary hypercube. The active process group must contain at least 16 processes when the declaration of h is encountered.
int shp [2] = {2, 3}, ids [6] = {0, 1, 3, 6, 10, 15} ; Procs q(2, shp, ids) ;
Creates a process array representing a 2 by 3 grid with a user-defined mapping to members of the active process group. The active process group must contain at least 16 processes when the declaration of q is encountered (because ids includes values up to 15).
Procs s(0, 0) ;
Creates scalar process grid containing a single process.