arrow
返回

Data layout optimization for multi-valued containers in OpenCL

delete2012-09-01
delete12
PRE
AI
R
Robert Strzodka *
DOI:10.1016/j.jpdc.2011.10.012delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Scientific data is mostly multi-valued, e.g., coordinates, velocities, moments or feature components, and it comes in large quantities. The data layout of such containers has an enormous impact on the achieved performance, however, layout optimization is very time-consuming and error-prone because container access syntax in standard programming languages is not sufficiently abstract. This means that changing the data layout of a container necessitates syntax changes in all parts of the code where the container is used. Object oriented languages allow to solve this problem by hiding the data layout behind a class interface. However, the additional coding effort is enormous in comparison to a simple structure. A clever coding pattern, previously presented by the author, significantly reduces the code overhead, however, it relies heavily on advanced C++ features, a language that is not supported on most accelerators. This paper develops a concise macro based solution that requires only support for structures and unions and can therefore be utilized in OpenCL, a widely supported programming language for parallel processors. This enables the development of high performance code without an a-priori commitment to a certain layout and includes the possibility to optimize it subsequently. This feature is used to identify the best data layouts for different processing patterns of multi-valued containers on a multi-CPU system. (C) 2011 Elsevier Inc. All rights reserved.
Keyword:
Multi-valued
Multi-component
Data layout
Array of structures
AoS
Structure of arrays
SoA
Array of structures of arrays
ASA
OpenCL
Multi-GPU

期刊

Journal of Parallel and Distributed Computing 封面图
Journal of Parallel and Distributed Computing
IF:
4
论文数:
3.8K
被引数:
4.8K

机构

暂无机构信息
引用论文

引用论文