...
首页> 外文期刊>Concurrency, practice and experience >Static code transformations for thread-dense memory accesses in GPU computing
【24h】

Static code transformations for thread-dense memory accesses in GPU computing

机译:GPU计算中线程密集内存访问的静态代码转换

获取原文
获取原文并翻译 | 示例
           

摘要

SummaryDue to the GPU's complex memory system and massive thread‐level parallelism, application programmers often have difficulty optimizing GPU programs. An essential approach to memory optimization is to utilize low‐latency on‐chip memory to avoid high latency of off‐chip memory accesses. Shared memory is an on‐chip memory, which is explicitly managed by programmers. Shared memory has a read/write latency similar to that of the L1 cache, but poor data management can degrade performance. In this paper, we present a static code transformation that preloads dataset in GPU's shared memory. Our static analysis primarily targets global memory requests with high thread‐density for preloading in shared memory. The thread‐dense memory access pattern is a pattern in which many threads efficiently manage the address space of shared memory, as well as reuse the same data in a thread block. We limit the usage of shared memory so that thread‐level parallelism remains at the same level when selecting datasets for preloading. Finally, our source‐to‐source compiler allows to preload selected datasets in shared memory by transforming non‐optimized GPU kernel code. Our methods achieve 1.26× and 1.62× speedups on average (geometric mean), respectively with GTX980 and P100 GPUs.
机译:SimaryDue到GPU的复杂内存系统和大规模的线程并行性,应用程序员通常很难优化GPU程序。内存优化的基本方法是利用低延迟的片上存储器,以避免外部内存访问的高延迟。共享内存是片上存储器,由程序员明确管理。共享内存具有类似于L1缓存的读/写延迟,但数据管理差的数据管理可能会降低性能。在本文中,我们提出了一个静态的代码转换,将数据集预加载到GPU的共享内存中。我们的静态分析主要针对具有高线程密度的全局内存请求,以便在共享存储器中预加载。线程密集的存储器访问模式是许多线程有效地管理共享存储器的地址空间的模式,以及重用线程块中的相同数据。我们限制了共享内存的使用情况,以便在选择预加载数据集时,线程级并行性仍保持在相同的级别。最后,我们的源代码编译器允许通过转换非优化的GPU内核代码来预先加载共享内存中的所选数据集。我们的方法平均(几何平均值)达到1.26×和1.62倍加速度,P100和P100 GPU分别为GTX980和P100 GPU。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号