'Updt 07'
This commit is contained in:
parent
fd575b08c1
commit
83e14be4ce
@ -1,6 +1,8 @@
|
|||||||
Excercise 1
|
Excercise 1
|
||||||
This is our quick tutorial.
|
This is our quick tutorial.
|
||||||
|
|
||||||
|
Compile the code and see whether you get the same results.
|
||||||
|
|
||||||
Hints:
|
Hints:
|
||||||
|
|
||||||
* add -fopenmp to gcc compiler
|
* add -fopenmp to gcc compiler
|
||||||
|
@ -22,7 +22,7 @@ void sum() {
|
|||||||
total_Sum = 0;
|
total_Sum = 0;
|
||||||
|
|
||||||
#pragma omp for
|
#pragma omp for
|
||||||
for(int i = 1; i <= 100; i++) {
|
for(int i = 1; i <= 10; i++) {
|
||||||
partial_Sum += i;
|
partial_Sum += i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user