Coordinated static and dynamic cache bypassing for GPUs

Xiaolong Xie, Yun Liang, Yu Wang, Guangyu Sun, Tao Wang
{"title":"Coordinated static and dynamic cache bypassing for GPUs","authors":"Xiaolong Xie, Yun Liang, Yu Wang, Guangyu Sun, Tao Wang","doi":"10.1109/HPCA.2015.7056023","DOIUrl":null,"url":null,"abstract":"The massive parallel architecture enables graphics processing units (GPUs) to boost performance for a wide range of applications. Initially, GPUs only employ scratchpad memory as on-chip memory. Recently, to broaden the scope of applications that can be accelerated by GPUs, GPU vendors have used caches in conjunction with scratchpad memory as on-chip memory in the new generations of GPUs. Unfortunately, GPU caches face many performance challenges that arise due to excessive thread contention for cache resource. Cache bypassing, where memory requests can selectively bypass the cache, is one solution that can help to mitigate the cache resource contention problem. In this paper, we propose coordinated static and dynamic cache bypassing to improve application performance. At compile-time, we identify the global loads that indicate strong preferences for caching or bypassing through profiling. For the rest global loads, our dynamic cache bypassing has the flexibility to cache only a fraction of threads. In CUDA programming model, the threads are divided into work units called thread blocks. Our dynamic bypassing technique modulates the ratio of thread blocks that cache or bypass at run-time. We choose to modulate at thread block level in order to avoid the memory divergence problems. Our approach combines compile-time analysis that determines the cache or bypass preferences for global loads with run-time management that adjusts the ratio of thread blocks that cache or bypass. Our coordinated static and dynamic cache bypassing technique achieves up to 2.28X (average 1.32X) performance speedup for a variety of GPU applications.","PeriodicalId":6593,"journal":{"name":"2015 IEEE 21st International Symposium on High Performance Computer Architecture (HPCA)","volume":"101 1","pages":"76-88"},"PeriodicalIF":0.0000,"publicationDate":"2015-03-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"121","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2015 IEEE 21st International Symposium on High Performance Computer Architecture (HPCA)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/HPCA.2015.7056023","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 121

Abstract

The massive parallel architecture enables graphics processing units (GPUs) to boost performance for a wide range of applications. Initially, GPUs only employ scratchpad memory as on-chip memory. Recently, to broaden the scope of applications that can be accelerated by GPUs, GPU vendors have used caches in conjunction with scratchpad memory as on-chip memory in the new generations of GPUs. Unfortunately, GPU caches face many performance challenges that arise due to excessive thread contention for cache resource. Cache bypassing, where memory requests can selectively bypass the cache, is one solution that can help to mitigate the cache resource contention problem. In this paper, we propose coordinated static and dynamic cache bypassing to improve application performance. At compile-time, we identify the global loads that indicate strong preferences for caching or bypassing through profiling. For the rest global loads, our dynamic cache bypassing has the flexibility to cache only a fraction of threads. In CUDA programming model, the threads are divided into work units called thread blocks. Our dynamic bypassing technique modulates the ratio of thread blocks that cache or bypass at run-time. We choose to modulate at thread block level in order to avoid the memory divergence problems. Our approach combines compile-time analysis that determines the cache or bypass preferences for global loads with run-time management that adjusts the ratio of thread blocks that cache or bypass. Our coordinated static and dynamic cache bypassing technique achieves up to 2.28X (average 1.32X) performance speedup for a variety of GPU applications.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
协调静态和动态缓存绕过gpu
大规模并行架构使图形处理单元(gpu)能够提高各种应用程序的性能。最初,gpu只使用刮板存储器作为片上存储器。最近,为了扩大GPU可以加速的应用范围,GPU供应商在新一代GPU中使用了缓存和刮板存储器作为片上存储器。不幸的是,GPU缓存面临许多性能挑战,这些挑战是由于线程对缓存资源的过度争用而产生的。缓存绕过(内存请求可以选择性地绕过缓存)是一种有助于缓解缓存资源争用问题的解决方案。在本文中,我们提出了协调的静态和动态缓存绕过来提高应用程序的性能。在编译时,我们识别全局负载,这些负载表明了通过分析进行缓存或绕过的强烈首选项。对于其余的全局负载,我们的动态缓存绕过可以灵活地只缓存一小部分线程。在CUDA编程模型中,线程被划分为称为线程块的工作单元。我们的动态绕过技术调节在运行时缓存或绕过的线程块的比例。为了避免内存发散问题,我们选择在线程块级别进行调制。我们的方法结合了编译时分析(确定全局负载的缓存或绕过首选项)和运行时管理(调整缓存或绕过的线程块的比例)。我们协调的静态和动态缓存绕过技术为各种GPU应用程序实现高达2.28倍(平均1.32倍)的性能加速。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Parameter Identification Inverse Problems of Partial Differential Equations Based on the Improved Gene Expression Programming High-Efficiency Realization of SRT Division on Ternary Optical Computers A Fast Training Method for Transductive Support Vector Machine in Semi-supervised Learning Performance Optimization of a DEM Simulation Framework on GPU Using a Stencil Model A Platform for Routine Development of Ternary Optical Computers
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1