首页> 外文期刊>ACM SIGPLAN Notices: A Monthly Publication of the Special Interest Group on Programming Languages >StreamScan: Fast Scan Algorithms for GPUs without Global Barrier Synchronization
【24h】

StreamScan: Fast Scan Algorithms for GPUs without Global Barrier Synchronization

机译:StreamScan:无需全局屏障同步的GPU快速扫描算法

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

摘要

Scan (also known as prefix sum) is a very useful primitive for various important parallel algorithms, such as sort, BFS, SpMV, compaction and so on. Current state of the art of GPU based scan implementation consists of three consecutive Reduce-Scan-Scan phases. This approach requires at least two global barriers and 3N (N is the problem size) global memory accesses. In this paper we propose StreamScan, a novel approach to implement scan on GPUs with only one computation phase. The main idea is to restrict synchronization to only adjacent workgroups, and thereby eliminating global barrier synchronization completely. The new approach requires only 2N global memory accesses and just one kernel invocation. On top of this we propose two important op-timizations to further boost performance speedups, namely thread grouping to eliminate unnecessary local barriers, and register optimization to expand the on chip problem size. We designed an auto-tuning framework to search the parameter space automati-cally to generate highly optimized codes for both AMD and Nvidia GPUs. We implemented our technique with OpenCL. Compared with previous fast scan implementations, experimental results not only show promising performance speedups, but also reveal dramatic different optimization tradeoffs between Nvidia and AMD GPU platforms. Categories and Subject Descriptors D.1.3 [Concurrent Pro-gramming]: Parallel programming
机译:扫描(也称为前缀和)对于各种重要的并行算法(例如排序,BFS,SpMV,压缩等)是非常有用的原语。基于GPU的扫描实现的最新技术水平包括三个连续的Reduce-Scan-Scan阶段。此方法至少需要两个全局屏障,并且需要3N(N是问题大小)全局存储器访问。在本文中,我们提出了StreamScan,这是一种仅需一个计算阶段即可在GPU上实现扫描的新颖方法。主要思想是将同步仅限制于相邻的工作组,从而完全消除全局屏障同步。新方法仅需要2N全局内存访问和一个内核调用。在此之上,我们提出了两个重要的优化措施来进一步提高性能,即线程分组以消除不必要的局部障碍,以及寄存器优化以扩大片上问题的大小。我们设计了一个自动调整框架,以自动搜索参数空间,从而为AMD和Nvidia GPU生成高度优化的代码。我们使用OpenCL实施了我们的技术。与以前的快速扫描实施相比,实验结果不仅显示出令人鼓舞的性能提升,而且还揭示了Nvidia与AMD GPU平台之间的巨大优化权衡。类别和主题描述符D.1.3 [并行编程]:并行编程

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号