diff --git a/07_OpenMP/desc b/07_OpenMP/desc index db781e0..09e4221 100644 --- a/07_OpenMP/desc +++ b/07_OpenMP/desc @@ -1,6 +1,8 @@ Excercise 1 This is our quick tutorial. +Compile the code and see whether you get the same results. + Hints: * add -fopenmp to gcc compiler diff --git a/07_OpenMP/ex1/src/openmp1.c b/07_OpenMP/ex1/src/openmp1.c index 930a8a4..d666269 100644 --- a/07_OpenMP/ex1/src/openmp1.c +++ b/07_OpenMP/ex1/src/openmp1.c @@ -22,7 +22,7 @@ void sum() { total_Sum = 0; #pragma omp for - for(int i = 1; i <= 100; i++) { + for(int i = 1; i <= 10; i++) { partial_Sum += i; }