Custom data layout for memory parallelism

Byoungro So, Mary W. Hall, H. Ziegler
{"title":"Custom data layout for memory parallelism","authors":"Byoungro So, Mary W. Hall, H. Ziegler","doi":"10.1109/CGO.2004.1281682","DOIUrl":null,"url":null,"abstract":"We describe a generalized approach to deriving a custom data layout in multiple memory banks for array-based computations, to facilitate high-bandwidth parallel memory accesses in modern architectures, where multiple memory banks can simultaneously feed one or more functional units. We do not use a fixed data layout, but rather select application-specific layouts according to access patterns in the code. A unique feature of this approach is its flexibility in the presence of code reordering transformations, such as the loop nest transformations commonly applied to array-based computations. We have implemented this algorithm in the DEFACTO system, a design environment for automatically mapping C programs to hardware implementations for FPGA-based systems. We present experimental results for five multimedia kernels that demonstrate the benefits of this approach. Our results show that custom data layout yields results as good as, or better than, naive or fixed cyclic layouts, and is significantly better for certain access patterns and in the presence of code reordering transformations. When used in conjunction with unrolling loops in a nest to expose instruction-level parallelism, we observe greater than a 75% reduction in the number of memory access cycles and speedups ranging from 3.96 to 46.7 for 8 memories, as compared to using a single memory with no unrolling.","PeriodicalId":444347,"journal":{"name":"International Symposium on Code Generation and Optimization, 2004. CGO 2004.","volume":"41 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2004-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"44","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Symposium on Code Generation and Optimization, 2004. CGO 2004.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CGO.2004.1281682","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 44

Abstract

We describe a generalized approach to deriving a custom data layout in multiple memory banks for array-based computations, to facilitate high-bandwidth parallel memory accesses in modern architectures, where multiple memory banks can simultaneously feed one or more functional units. We do not use a fixed data layout, but rather select application-specific layouts according to access patterns in the code. A unique feature of this approach is its flexibility in the presence of code reordering transformations, such as the loop nest transformations commonly applied to array-based computations. We have implemented this algorithm in the DEFACTO system, a design environment for automatically mapping C programs to hardware implementations for FPGA-based systems. We present experimental results for five multimedia kernels that demonstrate the benefits of this approach. Our results show that custom data layout yields results as good as, or better than, naive or fixed cyclic layouts, and is significantly better for certain access patterns and in the presence of code reordering transformations. When used in conjunction with unrolling loops in a nest to expose instruction-level parallelism, we observe greater than a 75% reduction in the number of memory access cycles and speedups ranging from 3.96 to 46.7 for 8 memories, as compared to using a single memory with no unrolling.
自定义数据布局以实现内存并行性
我们描述了一种通用的方法来在多个存储库中为基于数组的计算导出自定义数据布局,以促进现代架构中的高带宽并行内存访问,其中多个存储库可以同时为一个或多个功能单元提供数据。我们不使用固定的数据布局,而是根据代码中的访问模式选择特定于应用程序的布局。这种方法的独特之处在于它在出现代码重新排序转换时的灵活性,例如通常应用于基于数组的计算的循环巢转换。我们已经在DEFACTO系统中实现了这个算法,DEFACTO系统是一个设计环境,用于自动将C程序映射到基于fpga的系统的硬件实现。我们给出了五个多媒体内核的实验结果,证明了这种方法的好处。我们的结果表明,自定义数据布局产生的结果与原始或固定循环布局一样好,甚至更好,并且对于某些访问模式和存在代码重新排序转换的情况明显更好。当与嵌套中的展开循环一起使用以暴露指令级并行性时,我们观察到,与使用不展开的单个内存相比,8个内存的内存访问周期数量减少了75%以上,速度提高了3.96到46.7不等。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书