HPC - Loop-carried dependences

Moreno Marzolla

Last updated: 2022-10-17

The file omp-loop.c contains a set of serial functions with loops that iterate over arrays or matrices. The goal of this exercise is to apply the loop parallelization techniques seen during the class (or according to the hint provided below) to create a parallel version.

The main() function checks for correctness of the results comparing the output of the serial and parallel versions. Note that such fact check is not (and can not be) exhaustive.

To compile:

    gcc -std=c99 -Wall -Wpedantic -fopenmp omp-loop.c -o omp-loop

To execute:

    ./omp-loop

Files