Go backward to X-Net Communication Go up to Top Go forward to Example |
plural int a, b;
xnetW[1].a = a;
left shift
All active processors simultaneously transfer the values of their local variables to their left neighbors.
a = xnetE[1].a;
left shift
Each active processor receives the new value for its local variable from the local variable of its right neighbor.
a = a+xnetE[1].b;
Each active processor increments its local variable by the value of the local variable of its right neighbor.