首页> 外文会议>Annual IEEE/ACM International Symposium on Microarchitecture >Free launch: Optimizing GPU dynamic kernel launches through thread reuse
【24h】

Free launch: Optimizing GPU dynamic kernel launches through thread reuse

机译:免费启动:通过线程重用优化GPU动态内核启动

获取原文

摘要

Supporting dynamic parallelism is important for GPU to benefit a broad range of applications. There are currently two fundamental ways for programs to exploit dynamic parallelism on GPU: a software-based approach with software-managed worklists, and a hardware-based approach through dynamic subkernel launches. Neither is satisfactory. The former is complicated to program and is often subject to some load imbalance; the latter suffers large runtime overhead. In this work, we propose free launch, a new software approach to overcoming the shortcomings of both methods. It allows programmers to use subkernel launches to express dynamic parallelism. It employs a novel compiler-based code transformation named subkernel launch removal to replace the subkernel launches with the reuse of parent threads. Coupled with an adaptive task assignment mechanism, the transformation reassigns the tasks in the subkernels to the parent threads with a good load balance. The technique requires no hardware extensions, immediately deployable on existing GPUs. It keeps the programming convenience of the subkernel launch-based approach while avoiding its large runtime overhead. Meanwhile, its superior load balancing makes it outperform manual worklist-based techniques by 3X on average.
机译:支持动态并行性对于GPU受益于广泛的应用程序很重要。当前,程序在GPU上利用动态并行性有两种基本方法:一种是基于软件的方法,该方法具有软件管理的工作列表;另一种是通过动态子内核启动的基于硬件的方法。两者都不令人满意。前者的编程很复杂,并且经常会遇到一些负载不平衡的情况。后者遭受大量的运行时开销。在这项工作中,我们建议免费发布,这是一种新的软件方法,可以克服这两种方法的缺点。它允许程序员使用子内核启动来表达动态并行性。它采用了一种新颖的基于编译器的代码转换,称为子内核启动删除,以使用父线程的重用来替换子内核启动。结合自适应任务分配机制,该转换将子内核中的任务重新分配给具有良好负载平衡的父线程。该技术不需要硬件扩展,可以立即在现有GPU上部署。它保持了基于子程序启动的方法的编程便利性,同时避免了其较大的运行时开销。同时,其出色的负载平衡使其性能比基于手动工作表的技术平均要高出3倍。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号