Layout-oblivious compiler optimization for matrix computations

Author:

Cui Huimin1,Yi Qing2,Xue Jingling3,Feng Xiaobing1

Affiliation:

1. CAS

2. University of Colarodo at Colorado Springs

3. University of New South Wales

Abstract

Most scientific computations serve to apply mathematical operations to a set of preconceived data structures, e.g., matrices, vectors, and grids. In this article, we use a number of widely used matrix computations from the LINPACK library to demonstrate that complex internal organizations of data structures can severely degrade the effectiveness of compiler optimizations. We then present a data-layout-oblivious optimization methodology, where by isolating an abstract representation of the computations from complex implementation details of their data, we enable these computations to be much more accurately analyzed and optimized through varying state-of-the-art compiler technologies. We evaluated our approach on an Intel 8-core platform using two source-to-source compiler infrastructures, Pluto and EPOD. Our results show that while the efficiency of a computational kernel differs when using different data layouts, the alternative implementations typically benefit from a common set of optimizations on the operations. Therefore separately optimizing the operations and the data layout of a computation could dramatically enhance the effectiveness of compiler optimizations compared with the conventional approaches of using a unified representation.

Funder

Australian Research Council

U.S. Department of Energy

Ministry of Science and Technology of the People's Republic of China

National Natural Science Foundation of China

National Science Foundation

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Information Systems,Software

Reference32 articles.

1. Allen R. and Kennedy K. 2001. Optimizing Compilers for Modern Architectures. Morgan Kaufmann. Allen R. and Kennedy K. 2001. Optimizing Compilers for Modern Architectures. Morgan Kaufmann.

2. A recursive formulation of Cholesky factorization of a matrix in packed storage

3. Optimizing matrix multiply using PHiPAC

4. A practical automatic polyhedral parallelizer and locality optimizer

Cited by 6 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Symbolic Analysis for Data Plane Programs Specialization;ACM Transactions on Architecture and Code Optimization;2022-11-17

2. PPOpenCL: a performance-portable OpenCL compiler with host and kernel thread code fusion;Proceedings of the 28th International Conference on Compiler Construction - CC 2019;2019

3. Automating the Exchangeability of Shared Data Abstractions;Languages and Compilers for Parallel Computing;2019

4. Optimization of Triangular and Banded Matrix Operations Using 2d-Packed Layouts;ACM Transactions on Architecture and Code Optimization;2017-12-20

5. Dynamic I/O-Aware Scheduling for Batch-Mode Applications on Chip Multiprocessor Systems of Cluster Platforms;Journal of Computer Science and Technology;2014-01

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3