Optimization via Reflection on Work Stealing in TBB
Authors:
- 1 April 2008
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE) in 2008 IEEE International Symposium on Parallel and Distributed Processing
- No. 15302075,p. 1-8
Abstract
Intelreg Threading Building Blocks (Intelreg TBB) is a C++ library for parallel programming. Its templates for generic parallel loops are built upon nested parallelism and a work-stealing scheduler. This paper discusses optimizations where the high-level algorithm inspects or biases stealing. Two optimizations are discussed in detail. The first dynamically optimizes grain size based on observed stealing. The second improves prior work that exploits cache locality by biased stealing. This paper shows that in a task stealing environment, deferring task spawning can improve performance in some contexts. Performance results for simple kernels are presented.Keywords
This publication has 6 references indexed in Scilit:
- A compiler for exploiting nested parallelism in OpenMP programsParallel Computing, 2005
- Threads cannot be implemented as a library2005
- The data locality of work stealing2000
- Cilk: An Efficient Multithreaded Runtime SystemJournal of Parallel and Distributed Computing, 1996
- Implementation of a Portable Nested Data-Parallel LanguageJournal of Parallel and Distributed Computing, 1994
- P-SV wave propagation in heterogeneous media; velocity-stress finite-difference methodGeophysics, 1986