Sample code
seq worker in(float x[N][M]) out(float y[N][M])
${int i,j;
for(i=0;i<N;i++)
for(j=0;j<M;j++)
y[i][j] = compute(x[i][j]);
}$ obj(lib/compute.o) end seq
farm main in(float x[N][M])
out(float y[N][M])
worker in(x) out(y)
end farm
Previous slide
Next slide
Back to first slide
View graphic version