arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1606.08150cs.DC
收藏

在GPU上实现高效动态库存的供应商辅助库存整合

Compiler-Assisted Workload Consolidation For Efficient Dynamic Parallelism on GPU

Hancheng Wu, Da Li, Michela Becchi

摘要:

GPU已被广泛用于加速表现出简单并行模式的计算-例如平面或两级并行-以及可以基于输入数据集的大小静态确定的并行度。然而,有效地使用GPU的算法表现出复杂的模式的并行性,可能只知道在运行时,仍然是一个悬而未决的问题。最近,Nvidia在其GPU中引入了动态并行(DP)。通过使直接从GPU线程启动内核成为可能,此功能在运行时启用嵌套并行。然而,仍然必须理解DP的有效使用:天真地使用此功能可能会遭受显着的运行时开销,并导致GPU利用率不足,从而导致性能低下。在这项工作中,我们针对这个问题。首先,我们演示了如何天真的使用DP会导致性能不佳。其次,我们提出了三个工作负载整合计划,以提高性能和硬件利用率的DP为基础的代码,我们实现这些代码转换在一个基于指令的编译器。最后,我们评估我们的框架上的两类应用程序:算法,包括不规则循环和算法表现出并行递归。我们的实验表明,我们的方法显着降低了运行时开销,提高了GPU的利用率,导致加速因子从90倍到3300倍的基本基于DP的解决方案和加速从2倍到6倍的平面实现。

英文摘要:

GPUs have been widely used to accelerate computations exhibiting simple patterns of parallelism - such as flat or two-level parallelism - and a degree of parallelism that can be statically determined based on the size of the input dataset. However, the effective use of GPUs for algorithms exhibiting complex patterns of parallelism, possibly known only at runtime, is still an open problem. Recently, Nvidia has introduced Dynamic Parallelism (DP) in its GPUs. By making it possible to launch kernels directly from GPU threads, this feature enables nested parallelism at runtime. However, the effective use of DP must still be understood: a naive use of this feature may suffer from significant runtime overhead and lead to GPU underutilization, resulting in poor performance. In this work, we target this problem. First, we demonstrate how a naive use of DP can result in poor performance. Second, we propose three workload consolidation schemes to improve performance and hardware utilization of DP-based codes, and we implement these code transformations in a directive-based compiler. Finally, we evaluate our framework on two categories of applications: algorithms including irregular loops and algorithms exhibiting parallel recursion. Our experiments show that our approach significantly reduces runtime overhead and improves GPU utilization, leading to speedup factors from 90x to 3300x over basic DP-based solutions and speedups from 2x to 6x over flat implementations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑