openmp-tutorial

openmp-tutorial - OpenMP OpenMP Open Specifications for...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: OpenMP OpenMP Open Specifications for Multi Processing OpenMP is an API used for multi-threaded, shared memory parallelism Compiler Directives Runtime Library Routines Environment Variables Portable Standardized Available on PSI and CITRIS OpenMP vs PThreads OpenMP vs PThreads OpenMP allows for a higher level of abstraction Easier to finesse a serial code into a parallel version via OpenMP OpenMP pragmas ignored in serial compilation Scoping of thread-safe data is simplified Fork/Join Parallelism Fork/Join Parallelism Start out executing the program with one master thread Master thread forks worker threads Worker threads die or suspend at end of parallel code Image courtesy of http://www.llnl.gov/computing/tutorials/openMP/ Simple Parallelization Simple Parallelization f or ( i =0; i <max; i ++) zer o[ i ] = 0; For loop must have a canonical shape for OpenMP to parallelize it ...
View Full Document

Page1 / 14

openmp-tutorial - OpenMP OpenMP Open Specifications for...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online