A framework for dynamically instrumenting GPU compute applications within GPU Ocelot

GPGPU-4 Pub Date : 2011-03-05 DOI:10.1145/1964179.1964192
N. Farooqui, Andrew Kerr, G. Diamos, S. Yalamanchili, K. Schwan
{"title":"A framework for dynamically instrumenting GPU compute applications within GPU Ocelot","authors":"N. Farooqui, Andrew Kerr, G. Diamos, S. Yalamanchili, K. Schwan","doi":"10.1145/1964179.1964192","DOIUrl":null,"url":null,"abstract":"In this paper we present the design and implementation of a dynamic instrumentation infrastructure for PTX programs that procedurally transforms kernels and manages related data structures. We show how performing instrumentation within the GPU Ocelot dynamic compiler infrastructure provides unique capabilities not available to other profiling and instrumentation toolchains for GPU computing. We demonstrate the utility of this instrumentation capability with three example scenarios - (1) performing workload characterization accelerated by a GPU, (2) providing load imbalance information for use by a resource allocator, and (3) providing compute utilization feedback to be used online by a simulated process scheduler that might be found in a hypervisor. Additionally, we measure both (1) the compilation overheads of performing dynamic compilation and (2) the increases in runtimes when executing instrumented kernels. On average, compilation overheads due to instrumentation consisted of 69% of the time needed to parse a kernel module, in the case of the Parboil benchmark suite. Slowdowns for instrumenting each basic block ranged from 1.5x to 5.5x, with the largest slowdowns attributed to kernels with large numbers of short, compute-bound blocks.","PeriodicalId":317571,"journal":{"name":"GPGPU-4","volume":"5 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2011-03-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"62","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"GPGPU-4","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1964179.1964192","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 62

Abstract

In this paper we present the design and implementation of a dynamic instrumentation infrastructure for PTX programs that procedurally transforms kernels and manages related data structures. We show how performing instrumentation within the GPU Ocelot dynamic compiler infrastructure provides unique capabilities not available to other profiling and instrumentation toolchains for GPU computing. We demonstrate the utility of this instrumentation capability with three example scenarios - (1) performing workload characterization accelerated by a GPU, (2) providing load imbalance information for use by a resource allocator, and (3) providing compute utilization feedback to be used online by a simulated process scheduler that might be found in a hypervisor. Additionally, we measure both (1) the compilation overheads of performing dynamic compilation and (2) the increases in runtimes when executing instrumented kernels. On average, compilation overheads due to instrumentation consisted of 69% of the time needed to parse a kernel module, in the case of the Parboil benchmark suite. Slowdowns for instrumenting each basic block ranged from 1.5x to 5.5x, with the largest slowdowns attributed to kernels with large numbers of short, compute-bound blocks.
在GPU Ocelot中动态检测GPU计算应用程序的框架
在本文中,我们提出了PTX程序的动态仪器基础设施的设计和实现,该基础设施可以程序化地转换内核并管理相关的数据结构。我们将展示如何在GPU Ocelot动态编译器基础设施中执行插装,从而提供其他GPU计算分析和插装工具链所不具备的独特功能。我们通过三个示例场景演示了这种检测功能的效用——(1)执行由GPU加速的工作负载表征,(2)为资源分配器提供负载不平衡信息,以及(3)提供计算利用率反馈,供可能在管理程序中找到的模拟进程调度器在线使用。此外,我们还测量了(1)执行动态编译的编译开销和(2)执行插装内核时运行时的增量。在Parboil基准测试套件的情况下,由于插装导致的编译开销平均占解析内核模块所需时间的69%。用于检测每个基本块的减速从1.5倍到5.5倍不等,其中最大的减速归因于具有大量短的计算绑定块的内核。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信