Exercise 4
- Copy the source files pi source files to your kong account.
- Use the function omp_get_wtime() compare the performance of each
version of the pi code and find out the most efficient algorithm.
- Vary the number of threads and re-run your codes and analyze the
runtime of your code, for example, does your code run twice faster when
you increase the number of threads by two times.
- Write a code to perform the dot product in an OpenMP parallel region
for loop with a sum reduction.
____________________________________________________________