arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1904.09538cs.PFcs.DC
收藏

跨机黑盒GPU性能建模中的精度和范围平衡机制

A mechanism for balancing accuracy and scope in cross-machine black-box GPU performance modeling

James D. Stevens, Andreas Klöckner

摘要:

对计算的执行时间进行建模、分析和预测的能力是支持诸如负载均衡、性能优化和用于高性能并行应用的自动化性能调优等众多努力的重要构建块。在当今日益异构的计算环境中,这项任务必须在多个架构中有效地完成,包括像GPU这样的大规模并行协处理器。为了应对这一挑战,我们提出了一种方法来构建可定制的,跨机器的GPU内核的性能模型,包括一个机制,自动和象征性地收集性能相关的内核操作计数,一个工具,制定数学模型使用这些计数,和一个可定制的参数化集合的基准内核用于校准模型的GPU在黑盒的方式。我们的方法使用户能够管理模型的准确性,评估速度和可推广性之间的权衡。用户可以定义模型并自定义校准过程,使其根据需要简单或复杂,并根据需要针对应用或通用。为了评估我们的方法,我们演示了线性和非线性模型;每个示例都为特定计算的多个变体的执行时间建模:两个矩阵乘法变体,四个不连续Galerkin(DG)微分运算变体和两个2-D五点有限差分模板变体。对于每种变体,我们提供了来自多个供应商和硬件代的GPU的准确性结果。我们认为这种可定制的方法是对GPU性能建模中一个核心问题的回应:我们如何以成本解释的方式对GPU性能进行建模,同时保持准确性,评估速度,可移植性和易用性,我们认为这一属性排除了手动收集内核或硬件统计数据。

英文摘要:

The ability to model, analyze, and predict execution time of computations is an important building block supporting numerous efforts, such as load balancing, performance optimization, and automated performance tuning for high performance, parallel applications. In today's increasingly heterogeneous computing environment, this task must be accomplished efficiently across multiple architectures, including massively parallel coprocessors like GPUs. To address this challenge, we present an approach for constructing customizable, cross-machine performance models for GPU kernels, including a mechanism to automatically and symbolically gather performance-relevant kernel operation counts, a tool for formulating mathematical models using these counts, and a customizable parameterized collection of benchmark kernels used to calibrate models to GPUs in a black-box fashion. Our approach empowers a user to manage trade-offs between model accuracy, evaluation speed, and generalizability. A user can define a model and customize the calibration process, making it as simple or complex as desired, and as application-targeted or general as desired. To evaluate our approach, we demonstrate both linear and nonlinear models; each example models execution times for multiple variants of a particular computation: two matrix multiplication variants, four Discontinuous Galerkin (DG) differentiation operation variants, and two 2-D five-point finite difference stencil variants. For each variant, we present accuracy results on GPUs from multiple vendors and hardware generations. We view this customizable approach as a response to a central question in GPU performance modeling: how can we model GPU performance in a cost-explanatory fashion while maintaining accuracy, evaluation speed, portability, and ease of use, an attribute we believe precludes manual collection of kernel or hardware statistics.

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

↑