验证和测试GPU工作组进度模型
Specifying and Testing GPU Workgroup Progress Models
摘要:
随着GPU可用性的提高和编程支持的成熟,越来越多的应用程序被移植到这些平台上。许多并行应用程序都包含细粒度的同步习惯用法;因此,它们的正确执行取决于线程(或线程组)之间的相对前进程度。不幸的是,许多GPU编程规范几乎没有提到工作组之间的相对向前进度保证。虽然先前的工作已经为GPU提出了一系列合理的进度模型,但跨供应商的规范尚未承诺任何模型。这项工作是一个工具的实验数据的集合,以帮助规范设计者考虑在编程框架中的向前进展的保证。作为基础,我们正式的小型并行程序设计语言,捕捉细粒度同步的本质。然后,我们提供了一种方法,正式指定一个进度模型,并开发一个终止预言机,决定是否一个给定的程序是保证最终终止相对于一个给定的进度模型。接下来,我们形式化的并发程序,需要相对向前的进展终止的约束。使用这个约束,我们合成了一个大的483进展石蕊测试。结合终止预言,这使我们能够确定每个石蕊测试的预期状态-即,它是否保证最终终止-在各种进度模型下。我们提出了一个大型的实验活动,在来自5个不同供应商的8个GPU上运行石蕊测试。我们的研究结果强调,GPU有显着不同的终止行为下,我们的测试套件。最值得注意的是,我们发现Apple和ARM GPU不支持线性占用约束模型,这是一种由先前工作定义的直观进度模型,并假设用于描述现有GPU的占用率。
英文摘要:
As GPU availability has increased and programming support has matured, a wider variety of applications are being ported to these platforms. Many parallel applications contain fine-grained synchronization idioms; as such, their correct execution depends on a degree of relative forward progress between threads (or thread groups). Unfortunately, many GPU programming specifications say almost nothing about relative forward progress guarantees between workgroups. Although prior work has proposed a spectrum of plausible progress models for GPUs, cross-vendor specifications have yet to commit to any model. This work is a collection of tools experimental data to aid specification designers when considering forward progress guarantees in programming frameworks. As a foundation, we formalize a small parallel programming language that captures the essence of fine-grained synchronization. We then provide a means of formally specifying a progress model, and develop a termination oracle that decides whether a given program is guaranteed to eventually terminate with respect to a given progress model. Next, we formalize a constraint for concurrent programs that require relative forward progress to terminate. Using this constraint, we synthesize a large set of 483 progress litmus tests. Combined with the termination oracle, this allows us to determine the expected status of each litmus test -- i.e. whether it is guaranteed eventual termination -- under various progress models. We present a large experimental campaign running the litmus tests across 8 GPUs from 5 different vendors. Our results highlight that GPUs have significantly different termination behaviors under our test suite. Most notably, we find that Apple and ARM GPUs do not support the linear occupancy-bound model, an intuitive progress model defined by prior work and hypothesized to describe the workgroup schedulers of existing GPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。