19 lines
468 B
Plaintext
19 lines
468 B
Plaintext
Excercise 1
|
|
This is our quick tutorial.
|
|
|
|
Compile the code and see whether you get the same results.
|
|
|
|
Hints:
|
|
|
|
* add -fopenmp to gcc compiler
|
|
* add -lgomp (in Linux) to linker
|
|
|
|
|
|
Excercise 2
|
|
Implement in OpenMP the search of the maximum value in an array with randomly generated numbers. Check the speed up from 1 up to X threads.
|
|
|
|
Why there is no speed up at some point?
|
|
|
|
|
|
Excercise 3
|
|
Implement bubble sort in OpenMP. Can you make it faster than 1 threaded quicksort? |