arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.01329cs.DCcs.MShep-ex
收藏

通过SYCL互操作性实现接近本机的运行时性能和跨平台性能可移植性,以生成随机数

Achieving near native runtime performance and cross-platform performance portability for random number generation through SYCL interoperability

Vincent R. Pascuzzi, Mehdi Goli

摘要:

高性能计算(HPC)是加速科学研究和发现的主要驱动力,从量子模拟到医学治疗。虽然HPC资源的可用性不断提高在许多情况下对成功的科学至关重要,但即使是最大的合作也缺乏最大限度地利用当前硬件功能所需的计算专业知识。需要维护多个特定于平台的代码库进一步使问题复杂化,可能会对可以使用的机器增加限制。幸运的是,许多编程模型正在开发中,旨在促进异构计算的可移植代码。SYCL是一个开放标准的、基于C++的单源代码编程范例。SYCL的特性之一是互操作性,通过这种机制,应用程序和第三方库协调共享数据并协作执行。在本文中,我们利用SYCL编程模型来演示跨异构资源的跨平台性能移植。我们详细介绍了对oneMKL开源接口库的NVIDIA和AMD随机数生成器扩展。性能可移植性是相对于在四个主要硬件平台上使用两个不同的支持SYCL的编译器执行的特定于平台的基线应用程序来测量的。我们的扩展的效用是通过高能物理模拟应用程序在现实世界中的设置举例说明。我们的实现,利用SYCL互操作性的性能与本地实现,证明了跨平台的性能移植性的SYCL为基础的方法,科学的代码。

英文摘要:

High-performance computing (HPC) is a major driver accelerating scientific research and discovery, from quantum simulations to medical therapeutics. While the increasing availability of HPC resources is in many cases pivotal to successful science, even the largest collaborations lack the computational expertise required for maximal exploitation of current hardware capabilities. The need to maintain multiple platform-specific codebases further complicates matters, potentially adding constraints on machines that can be utilized. Fortunately, numerous programming models are under development that aim to facilitate portable codes for heterogeneous computing. One in particular is SYCL, an open standard, C++-based single-source programming paradigm. Among SYCL's features is interoperability, a mechanism through which applications and third-party libraries coordinate sharing data and execute collaboratively. In this paper, we leverage the SYCL programming model to demonstrate cross-platform performance portability across heterogeneous resources. We detail our NVIDIA and AMD random number generator extensions to the oneMKL open-source interfaces library. Performance portability is measured relative to platform-specific baseline applications executed on four major hardware platforms using two different compilers supporting SYCL. The utility of our extensions are exemplified in a real-world setting via a high-energy physics simulation application. We show the performance of implementations that capitalize on SYCL interoperability are at par with native implementations, attesting to the cross-platform performance portability of a SYCL-based approach to scientific codes.

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

↑