Contents: [slideshow]

Optimisation: Ways and Means

High Throughput Computing

High Performance/Parallel Computing




About this document

Optimisation, Distribution and Parallelisation

OpenMP

A method to parallelise for shared memory
  • Launches multiple threads in specified sections of the code
  • Compiler directives control parallel regions
Easy to add to existing serial code
To parallelise loops:
  • Fortran: !$omp do
  • C: #pragma omp for
  • Env var OMP_NUM_THREADS controls number of threads
Intel and gnu compilers support OpenMP
    ifort -openmp          gfortran -fopenmp 
    icc -openmp            gcc -fopenmp 


...previousup (conts)next...