Affiliation:
1. Federal University of Minas Gerais, Brazil
2. LG Electronics, Brazil
Abstract
Heterogeneous architectures characterize today hardware ranging from super-computers to smartphones. However, in spite of this importance, programming such systems is still challenging. In particular, it is challenging to map computations to the different processors of a heterogeneous device. In this paper, we provide a static analysis that mitigates this problem. Our contributions are two-fold: first, we provide a semi-context-sensitive algorithm, which analyzes the program's call graph to determine the best processor for each calling context. This algorithm is parameterized by a cost model, which takes into consideration processor's characteristics and data transfer time. Second, we show how to use simulated annealing to calibrate this cost model for a given heterogeneous architecture. We have used our ideas to build Etino, a tool that annotates C programs with OpenACC or OpenMP 4.0 directives. Etino generates code for a CPU-GPU architecture without user intervention. Experiments on classic benchmarks reveal speedups of up to 75x. Moreover, our calibration process lets avoid slowdowns of up to 720x which trivial parallelization approaches would yield.
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference61 articles.
1. Alfred V. Aho Monica S. Lam Ravi Sethi and Jeffrey D. Ullman. 2006. Compilers: Principles Techniques and Tools (2nd Edition). Addison Wesley Boston MA USA. Alfred V. Aho Monica S. Lam Ravi Sethi and Jeffrey D. Ullman. 2006. Compilers: Principles Techniques and Tools (2nd Edition). Addison Wesley Boston MA USA.
2. Runtime pointer disambiguation
3. M. Amini C. Ancourt F. Coelho B. Creusillet S. Guelton F. Irigoin P. Jouvelot R. Keryell and P. Villalon. 2012. PIPS Is not (only) Polyhedral Software. Technical Report. IMPACT. M. Amini C. Ancourt F. Coelho B. Creusillet S. Guelton F. Irigoin P. Jouvelot R. Keryell and P. Villalon. 2012. PIPS Is not (only) Polyhedral Software. Technical Report. IMPACT.
4. A view of cloud computing
5. StarPU: a unified platform for task scheduling on heterogeneous multicore architectures
Cited by
11 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Automated Mapping of Task-Based Programs onto Distributed and Heterogeneous Machines;Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis;2023-11-11
2. OpenMP Advisor: A Compiler Tool for Heterogeneous Architectures;OpenMP: Advanced Task-Based, Device and Compiler Programming;2023
3. COMPOFF: A Compiler Cost model using Machine Learning to predict the Cost of OpenMP Offloading;2022 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW);2022-05
4. ANGHABENCH: A Suite with One Million Compilable C Benchmarks for Code-Size Reduction;2021 IEEE/ACM International Symposium on Code Generation and Optimization (CGO);2021-02-27
5. Type Inference for C;ACM Transactions on Programming Languages and Systems;2020-12