Compiler multiversioning for automatic task granularity control
Authors:
- 19 May 2014
- journal article
- research article
- Published by Wiley in Concurrency and Computation: Practice and Experience
- Vol. 26 (14) , 2367-2385
Abstract
SUMMARY: Task parallelism is a programming technique that has been shown to be applicable in a wide variety of problem domains. A central parameter that needs to be controlled to ensure efficient execution of task parallel programs is the granularity of tasks. When they are too coarse grained, scalability and load balance suffer, while very fine‐grained tasks introduce execution overheads. We present a combined compiler and runtime approach that enables automatic granularity control. Starting from recursive, task parallel programs, our compiler generates multiple versions of each task, increasing granularity by task unrolling. Subsequently, we apply a parallelism‐aware optimizing transformation to remove superfluous task synchronization primitives in all generated versions. A runtime system then selects among these task versions of varying granularity by locally tracking task demand. Benchmarking on a set of task parallel programs using a work‐stealing scheduler demonstrates that our approach is generally effective. For fine‐grained tasks, we can achieve reductions in execution time exceeding a factor of 6, compared with state‐of‐the‐art implementations. Additionally, we evaluate the impact of two crucial algorithmic parameters, the number of generated code versions and the task queue length, on the performance of our method. Copyright © 2014 John Wiley & Sons, Ltd.Keywords
Funding Information
- Austrian Science Fund (834307)
- CHIST-ERA
This publication has 14 references indexed in Scilit:
- OpenMP task scheduling strategies for multicore NUMA systemsThe International Journal of High Performance Computing Applications, 2012
- libKOMP, an Efficient OpenMP Runtime System for Both Fork-Join and Data Flow Paradigms2012
- Comparison of OpenMP 3.0 and Other Task Parallel Frameworks on Unbalanced Task GraphsInternational Journal of Parallel Programming, 2010
- Barcelona OpenMP Tasks Suite: A Set of Benchmarks Targeting the Exploitation of Task Parallelism in OpenMP2009
- An adaptive cut-off for task parallelism2008
- Cache oblivious stencil computations2005
- Recursion Unrolling for Divide and Conquer ProgramsLecture Notes in Computer Science, 2001
- CilkACM SIGPLAN Notices, 1995
- Compiler transformations for high-performance computingACM Computing Surveys, 1994
- Lazy task creation: a technique for increasing the granularity of parallel programsIEEE Transactions on Parallel and Distributed Systems, 1991