OpenMP 2: FORTRAN Specific

This exercise is to help the users use of the OpenMP 2 directives in their FORTRAN codes. First think about what the directives are, where to insert them and how to do that. Next,

  • Choose the following Fortran example
  • Compile, run the code and time the executation time. This will allow you to know how the sequential code works. Then,
  • Insert the following OMP2 directives:
          Reduction on Array
  • Compile and run your new OpenMP code
  • Run for different number of threads. Do you get any speed up?