Lines Matching defs:work
11 int work[NUMBER_OF_THREADS];
30 #pragma omp parallel private(iam,neighbor) shared(work,synch)
35 /*Do computation into my portion of work array */
36 work[iam] = fn1 (iam);
37 /* Announce that I am done with my work. The first flush
38 * ensures that my work is made visible before synch.
41 #pragma omp flush(work,synch)
46 * The second flush ensures that work is read from memory, and
54 #pragma omp flush(work,synch)
55 /* Read neighbor's values of work array */
56 result[iam] = fn2 (work[neighbor], work[iam]);