Automatic Throughput and Critical Path Analysis of x86 and ARM Assembly Kernels

Jan Laukemann, Julian Hammer, Georg Hager, Gerhard Wellein
10/1/2019
32 citations
cs.PF

Official code: RRZE-HPC/OSACA (385 stars, Jupyter Notebook, AGPL-3.0, last commit 2026-10-13). 1 more implementation below.

Abstract

Useful models of loop kernel runtimes on out-of-order architectures require an analysis of the in-core performance behavior of instructions and their dependencies. While an instruction throughput prediction sets a lower bound to the kernel runtime, the critical path defines an upper bound.

Show full abstract

Such predictions are an essential part of analytic (i.e., white-box) performance models like the Roofline and Execution-Cache-Memory (ECM) models. They enable a better understanding of the performance-relevant interactions between hardware architecture and loop code. The Open Source Architecture Code Analyzer (OSACA) is a static analysis tool for predicting the execution time of sequential loops. It previously supported only x86 (Intel and AMD) architectures and simple, optimistic full-throughput execution. We have heavily extended OSACA to support ARM instructions and critical path prediction including the detection of loop-carried dependencies, which turns it into a versatile cross-architecture modeling tool. We show runtime predictions for code on Intel Cascade Lake, AMD Zen, and Marvell ThunderX2 micro-architectures based on machine models from available documentation and semi-automatic benchmarking. The predictions are compared with actual measurements.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
RRZE-HPC/OSACAOfficial385Jupyter NotebookAGPL-3.02026-10-13
RRZE-HPC/OSACA-CP-2019Official0Assembly–2019-10-16
RRZE-HPC/OSACAOfficial100%
AGPL-3.0

Open Source Architecture Code Analyzer

38530Jupyter Notebook, PythonMar 2, 20171 months agoAGPL-3.0
aarch64arm64v8assemblyavxavx2+15 more

Reproducibility artifacts for critical path analysis with OSACA

00Assembly, ShellSep 12, 20197 years ago

Similar Papers

Cite this paper

@article{laukemann2019automatic,
  title  = {Automatic Throughput and Critical Path Analysis of x86 and ARM Assembly Kernels},
  author = {Jan Laukemann and Julian Hammer and Georg Hager and Gerhard Wellein},
  year   = {2019},
  eprint = {1910.00214},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.00214}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1910.00214.svg)](https://codeofpaper.com/paper/1910.00214)

Discussion