Parallel Sections - Assignment

This exercise presents a simple program to demonstrate the use of PARALLEL SECTIONS/PARALLEL SECTION worksharing construct.The program multiples a matrix A by a matrix B and stores the result in a matrix D. It also multiply matrix A with matrix C and stores the result in E.

  • Choose either one of the following Fortran or C example
  • Compile and run the code
  • Insert PARALLEL SECTIONS/PARALLEL SECTION OpenMP directives for the two triple do loops of the 2 matrix multiplications, each consituting a section.
  • Compile and run your new OpenMP code
  • Run for different number of threads. Do you get any speed up?