/* mat-opt-all.c * * Matrix multiplication with remote data prefetching to local data. */ elem_t blocal[P][M]; #define STRUCTSIZE 6 typedef struct { elem_t a[STRUCTSIZE]; } cpstruct; int main() { int i,j,l; elem_t sum; elem_t *pa, *pc; double time0, time1; // Collective arrays initialization upc_forall(i=0;i