Go to the documentation of this file.
20int main(
int argc,
char *argv[]) {
27#pragma omp parallel num_threads(5) reduction(+ : var)
29#pragma omp for schedule(static) nowait reduction(+ : sum1)
30 for (
i = 0;
i < 5;
i++)
32#pragma omp for schedule(static) reduction(+ : sum2)
33 for (
i = 0;
i < 5;
i++)
39 fprintf(stderr,
"DONE\n");
40 int error = (var != 100);