Autotuning Benchmarking Techniques: A Roofline Model Case Study

03/15/2021
by   Jacob Odgård Tørring, et al.
0

Peak performance metrics published by vendors often do not correspond to what can be achieved in practice. It is therefore of great interest to do extensive benchmarking on core applications and library routines. Since DGEMM is one of the most used in compute-intensive numerical codes, it is typically highly vendor optimized and of great interest for empirical benchmarks. In this paper we show how to build a novel tool that autotunes the benchmarking process for the Roofline model. Our novel approach can efficiently and reliably find optimal configurations for any target hardware. Results of our tool on a range of hardware architectures and comparisons to theoretical peak performance are included. Our tool autotunes the benchmarks for the target architecture by deciding the optimal parameters through state space reductions and exhaustive search. Our core idea includes calculating the confidence interval using the variance and mean and comparing it against the current optimum solution. We can then terminate the evaluation process early if the confidence interval's maximum is lower than the current optimum solution. This dynamic approach yields a search time improvement of up to 116.33x for the DGEMM benchmarking process compared to a traditional fixed sample-size methodology. Our tool produces the same benchmarking result with an error of less than 2 techniques we apply, while providing a great reduction in search time. We compare these results against hand-tuned benchmarking parameters. Results from the memory-intensive TRIAD benchmark, and some ideas for future directions are also included.

READ FULL TEXT

page 7

page 9

research
05/22/2019

NTP : A Neural Network Topology Profiler

Performance of end-to-end neural networks on a given hardware platform i...
research
10/27/2022

The Optimal Sample Size in Crosswise Model for Sensitive Questions

The problem is in the estimation of the fraction of population with a st...
research
06/15/2023

MLonMCU: TinyML Benchmarking with Fast Retargeting

While there exist many ways to deploy machine learning models on microco...
research
02/28/2018

A Design Space Exploration Methodology for Parameter Optimization in Multicore Processors

The need for application-specific design of multicore/manycore processin...
research
05/31/2022

HW-Aware Initialization of DNN Auto-Tuning to Improve Exploration Time and Robustness

The process of optimizing the latency of DNN operators with ML models an...
research
03/25/2022

Analyzing Search Techniques for Autotuning Image-based GPU Kernels: The Impact of Sample Sizes

Modern computing systems are increasingly more complex, with their multi...
research
10/06/2022

A Theory of Dynamic Benchmarks

Dynamic benchmarks interweave model fitting and data collection in an at...

Please sign up or login with your details

Forgot password? Click here to reset