OpenMP

From SourceWiki
Revision as of 08:57, 17 October 2008 by GethinWilliams (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

'Parallel: Using more than one processor at a time'

Introduction

Multi-core chips. Clusters of computers. Key difference is shared versus distributed memory. Number of 'parallel programming models'. One of which is the use of threads.

OpneMP

A very useful and relatively simple way to get started with parallel programming. Useful for getting your model to run faster on a multi-core machine.

Threaded programming model. Most of the details of the threads are handled the runtime environment.

svn co http://source.ggy.bris.ac.uk/subversion-open/parallel ./parallel

Hello, world

A time-honoured starting point, except this time we'll get many hellos!

Work Sharing inside Loops

Reductions

A more Realistic Example

Comparing Fortran and C