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

自相似密度工作负载的GPU动态并行性建模

Modeling GPU Dynamic Parallelism for Self Similar Density Workloads

Felipe A. Quezada, Cristóbal A. Navarro, Miguel Romero, Cristhian Aguilera

摘要:

动态并行(DP)是GPU编程模型的运行时特征,其允许GPU线程递归地执行附加GPU内核。除了使并行分层模式的编程更容易之外,DP还可以通过细分过程将有限的GPU资源集中在表现出更多并行性的子区域上来加速表现出异构数据布局的问题。然而,做一个最佳的细分过程是不平凡的,因为有不同的参数,在DP的最终性能发挥重要作用。此外,当前DP的编程抽象还引入了可能损害最终性能的开销。在这项工作中,我们提出了一个细分成本模型的问题,表现出自相似密度(SSD)的工作负载(如分形),以了解什么参数提供最快的细分方法。此外,我们引入了一个新的细分实现,命名为\textit{Adaptive Serial Kernels}(ASK),作为一个较小的开销替代CUDA的动态细分。使用Mandelbrot集上的成本模型作为案例研究表明,最优方案是从$g=[2,16]$之间的初始细分开始,然后在$r=2,4$的区域内继续细分,当区域达到$B \sim 32$时停止。实验结果与理论参数吻合较好,验证了成本模型的可用性。在性能方面,所提出的ASK方法运行到$\sim 60\%$快于Mandelbrot集合中的动态递归,并且运行到$12\times$快于基本的穷举实现,而DP运行到$7.5\times$。

英文摘要:

Dynamic Parallelism (DP) is a runtime feature of the GPU programming model that allows GPU threads to execute additional GPU kernels, recursively. Apart from making the programming of parallel hierarchical patterns easier, DP can also speedup problems that exhibit a heterogeneous data layout by focusing, through a subdivision process, the finite GPU resources on the sub-regions that exhibit more parallelism. However, doing an optimal subdivision process is not trivial, as there are different parameters that play an important role in the final performance of DP. Moreover, the current programming abstraction for DP also introduces an overhead that can penalize the final performance. In this work we present a subdivision cost model for problems that exhibit self similar density (SSD) workloads (such as fractals), in order understand what parameters provide the fastest subdivision approach. Also, we introduce a new subdivision implementation, named \textit{Adaptive Serial Kernels} (ASK), as a smaller overhead alternative to CUDA's Dynamic Parallelism. Using the cost model on the Mandelbrot Set as a case study shows that the optimal scheme is to start with an initial subdivision between $g=[2,16]$, then keep subdividing in regions of $r=2,4$, and stop when regions reach a size of $B \sim 32$. The experimental results agree with the theoretical parameters, confirming the usability of the cost model. In terms of performance, the proposed ASK approach runs up to $\sim 60\%$ faster than Dynamic Parallelism in the Mandelbrot set, and up to $12\times$ faster than a basic exhaustive implementation, whereas DP is up to $7.5\times$.

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

↑