/* * @@name: task_reduction.2 * @@type: C * @@operation: run * @@expect: success * @@version: omp_5.0 */ #include int main(void){ int N=100, M=10; int i, x; // USE CASE 1 explicit-task reduction + parallel reduction clause x=0; #pragma omp parallel num_threads(M) reduction(task,+:x) { x++; // implicit task reduction statement #pragma omp single for(i=0;i