Download Autotuning Tutorials - ROSE compiler infrastructure

Transcript
Contents
1 Introduction
3
2 Preparation
2.1 Using HPCToolkit . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2 Using gprof . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5
5
5
3 Code Triage and Transformations
3.1 Invoking Code Triage . . . . . . .
3.2 Tool Interface . . . . . . . . . . .
3.3 Kernel Extraction: Outlining . .
3.4 Transformations for Autotuning .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
7
7
8
9
11
4 Empirical Tuning
15
4.1 Parameterized Transformation Tools . . . . . . . . . . . . . . . . 15
4.2 Search Engines . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.3 An Example Search . . . . . . . . . . . . . . . . . . . . . . . . . 19
5 Working with Active Harmony
6 User-Directed Autotuning
6.1 Manual Code Triage . . . . . . . . . .
6.2 Parameterized ROSE Loop Translators
6.3 Connecting to the Search Engine . . .
6.4 Results . . . . . . . . . . . . . . . . . .
7 Summary
20
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
23
23
25
26
28
28
8 Appendix
29
8.1 Patching Linux Kernels with perfctr . . . . . . . . . . . . . . . . 29
8.2 Installing BLCR . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
2