Institute for Communication Technologies and Embedded Systems

Sampled Simulation of Task-Based Programs

Authors:
Grass, T. ,  Carlson, T. E. ,  Rico, A. ,  Ceballos, G. ,  Ayguade, E. ,  Casas, M. ,  Moreto, M.
Journal:
(IEEE TC)
Volume:
68
Page(s):
255-269
number:
2
Date:
Aug. 2018
ISSN:
0018-9340
DOI:
10.1109/TC.2018.2860012
hsb:
RWTH-2019-01317
Language:
English
Abstract:
Sampled simulation is a mature technique for reducing simulation time of single-threaded programs. Nevertheless, current sampling techniques do not take advantage of other execution models, like task-based execution, to provide both more accurate and faster simulation. Task-based programming models allow the programmer to specify program segments as tasks which are instantiated many times and scheduled dynamically to available threads. Due to variation in scheduling decisions, two consecutive executions on the same machine typically result in different instruction streams processed by each thread. In this paper, we propose TaskPoint, a sampled simulation technique for dynamically scheduled task-based programs. We leverage task instances as sampling units and simulate only a fraction of all task instances in detail. Between detailed simulation intervals, we employ a novel fast-forwarding mechanism for dynamically scheduled programs. We valuate different automatic techniques for clustering task instances and show that DBSCAN clustering combined with analytical performance modeling provides the best trade-off of simulation speed and accuracy. TaskPoint is the first technique combining sampled simulation and analytical modeling and provides a new way to trade off simulation speed and accuracy. Compared to detailed simulation, TaskPoint accelerates architectural simulation with 8 simulated threads by an average factor of 220x at an average error of 0.5% and a maximum error of 7.9%.
Download:
BibTeX