A Novel Thread Partitioning Approach Based on Machine Learning for Speculative Multithreading
Authors:
- Bin LiuBLBin Liu
- Yinliang ZhaoYZYinliang Zhao
- Xiang ZhongXZXiang Zhong
- Zengyu LiangZLZengyu Liang
- Boqin FengBFBoqin Feng
- 1 November 2013
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 826-836
Abstract
Speculative multithreading (SpMT) is a thread-level automatic parallelization technique to accelerate sequential programs on multi-core. The existing heuristic-based approaches are only suitable for one kind of programs and cannot guarantee to get the optimal solution of thread partitioning. In this paper, we propose a novel thread partitioning approach based on machine learning to partition irregular programs into multithreads. It mainly includes: generating sufficient training samples, building and applying the prediction model to partition the irregular programs. By using the thread partition approach, an unseen irregular program can obtain a stable, much higher speedup than the heuristic-based approaches. On the Prophet, which is a SpMT processor to evaluate the performance of multithreaded programs, the novel thread partitioning approach is evaluated and reaches an average speedup of 1.80 on 4-core processor. Experiments show that our proposed approach can obtain a significant increase in speedup and Olden benchmarks deliver a better performance improvement of 5.41% than the traditional heuristic-based approach.Keywords
This publication has 29 references indexed in Scilit:
- Disjoint out-of-order execution processorACM Transactions on Architecture and Code Optimization, 2012
- Dynamically dispatching speculative threads to improve sequential executionACM Transactions on Architecture and Code Optimization, 2012
- Reevaluating Amdahl’s law in the multicore eraJournal of Parallel and Distributed Computing, 2010
- Towards a holistic approach to auto-parallelizationACM SIGPLAN Notices, 2009
- Mapping parallelism to multi-coresACM SIGPLAN Notices, 2009
- A Cost-Aware Parallel Workload Allocation Approach Based on Machine Learning Techniques2007
- A general compiler framework for speculative multithreaded processorsIEEE Transactions on Parallel and Distributed Systems, 2004
- Using thread-level speculation to simplify manual parallelizationACM SIGPLAN Notices, 2003
- The Stanford Hydra CMPIEEE Micro, 2000
- Software Caching and Computation Migration in OldenJournal of Parallel and Distributed Computing, 1996