Basic HTML version of Foils prepared 3 May 98

Foil 5 Distributed Array Syntax

From HPJava and HPspmd Motivation and Status Alliance 98 NCSA Illinois -- April 27-29 98. by Bryan Carpenter, Geoffrey Fox, Xinying Li, Yuhong wen, Guansong Zhang


1 HPJava
2
3 Procs p = new Procs1(4) ;
4 Range x = new BlockRange(100,p.dim(0));
5
6 float [[,*]] a = new float [[x, 100]] on p ;
7
8 float [[]] b = new float [[x]] on p ;
9 HPF
10
11 !HPF$ PROCESSOR P(4)
12 !HPF$ DISTRIBUTE T(BLOCK) ONTO P
13
14 REAL A(100,100)
15 !HPF$ ALIGN A(:,*) WITH T(:)
16
17 REAL B(100)
18 !HPF$ ALIGN B(:) WITH T(:)

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998