Unzip the file and it should have a folder called OMP_exercises.
Copy the folder to LOKI. (If you are using MobaXTerm, you can just drag the folder to the
left side of the screen where the files are listed).
Navigate to the foloder and edit make.def as follows:
Replace icl with gcc, /Qopenmp with -fopenmp
and obj with o.
To compile the pi.c program, type make pi. If you get errors, make sure you made the
appropriate changes from the last step.
To run the pi program, type ./pi (don't as me why the "./" is necessary before the "pi".
It has to do with paths and stuff.).
Now parallelize it as suggested in the video.
Note that the code related to omp_get_wtime has already been added, so you don't have to worry about that.
If you get stuck on parallelizing the code, move on to video 7 and fix your code using his solution.
FYI, as we move forward, you can compile and run the other programs the same way. Just replace pi
with whatever the other program is called. (The makefile has rules for compiling all of the programs.)