From 83e14be4ce2fe480190dff795839f7a4d058ba3e Mon Sep 17 00:00:00 2001 From: Arkadiusz Hypki Date: Mon, 6 May 2024 14:06:04 +0200 Subject: [PATCH] 'Updt 07' --- 07_OpenMP/desc | 2 ++ 07_OpenMP/ex1/src/openmp1.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; }