Loop Parallelism: A New Skeleton Perspective on Data Parallel Patterns
Authors:
- Marco DaneluttoMDMarco Danelutto
- Massimo TorquatiMTMassimo Torquati
- 1 February 2014
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 6853 (10666192) , 52-59
Abstract
Traditionally, skeleton based parallel programming frameworks support data parallelism by providing the programmer with a comprehensive set of data parallel skeletons, based on different variants of map and reduce patterns. On the other side, more conventional parallel programming frameworks provide application programmers with the possibility to introduce parallelism in the execution of loops with a relatively small programming effort. In this work, we discuss a "ParallelFor" skeleton provided within the FastFlow framework and aimed at filling the usability and expressivity gap between the classical data parallel skeleton approach and the loop parallelisation facilities offered by frameworks such as OpenMP and Intel TBB. By exploiting the low run-time overhead of the FastFlow parallel skeletons and the new facilities offered by the C++11 standard, our ParallelFor skeleton succeeds to obtain comparable or better performance than both OpenMP and TBB on the Intel Phi many-core and Intel Nehalem multi-core for a set of benchmarks considered, yet requiring a comparable programming effort.Keywords
This publication has 8 references indexed in Scilit:
- Automatic OpenMP Loop Scheduling: A Combined Compiler and Runtime Approach2012
- An Efficient Unbounded Lock-Free Queue for Multi-core Systems2012
- Accelerating Code on Multi-cores with FastFlow2011
- Mapping parallelism to multi-cores2009
- Bringing skeletons out of the closet: a pragmatic manifesto for skeletal parallel programmingParallel Computing, 2004
- OpenMP: an industry standard API for shared-memory programmingIEEE Computational Science and Engineering, 1998
- Cilk: An Efficient Multithreaded Runtime SystemJournal of Parallel and Distributed Computing, 1996
- Using processor affinity in loop scheduling on shared-memory multiprocessorsIEEE Transactions on Parallel and Distributed Systems, 1994