Ruobing Han, Jun Chen, Bhanu Garg, Xule Zhou, John Lu, Jeffrey Young, Jaewoong Sim, Hyesoon Kim
{"title":"CuPBoP: Making CUDA a Portable Language","authors":"Ruobing Han, Jun Chen, Bhanu Garg, Xule Zhou, John Lu, Jeffrey Young, Jaewoong Sim, Hyesoon Kim","doi":"10.1145/3659949","DOIUrl":null,"url":null,"abstract":"CUDA is designed specifically for NVIDIA GPUs and is not compatible with non-NVIDIA devices. Enabling CUDA execution on alternative backends could greatly benefit the hardware community by fostering a more diverse software ecosystem.\n To address the need for portability, our objective is to develop a framework that meets key requirements, such as extensive coverage, comprehensive end-to-end support, superior performance, and hardware scalability. Existing solutions that translate CUDA source code into other high-level languages, however, fall short of these goals.\n In contrast to these source-to-source approaches, we present a novel framework, CuPBoP, which treats CUDA as a portable language in its own right. Compared to two commercial source-to-source solutions, CuPBoP offers a broader coverage and superior performance for the CUDA-to-CPU migration. Additionally, we evaluate the performance of CuPBoP against manually optimized CPU programs, highlighting the differences between CPU programs derived from CUDA and those that are manually optimized.\n Furthermore, we demonstrate the hardware scalability of CuPBoP by showcasing its successful migration of CUDA to AMD GPUs.\n To promote further research in this field, we have released CuPBoP as an open-source resource.","PeriodicalId":2,"journal":{"name":"ACS Applied Bio Materials","volume":"49 8","pages":""},"PeriodicalIF":4.7000,"publicationDate":"2024-04-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACS Applied Bio Materials","FirstCategoryId":"94","ListUrlMain":"https://doi.org/10.1145/3659949","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"MATERIALS SCIENCE, BIOMATERIALS","Score":null,"Total":0}
引用次数: 0
Abstract
CUDA is designed specifically for NVIDIA GPUs and is not compatible with non-NVIDIA devices. Enabling CUDA execution on alternative backends could greatly benefit the hardware community by fostering a more diverse software ecosystem.
To address the need for portability, our objective is to develop a framework that meets key requirements, such as extensive coverage, comprehensive end-to-end support, superior performance, and hardware scalability. Existing solutions that translate CUDA source code into other high-level languages, however, fall short of these goals.
In contrast to these source-to-source approaches, we present a novel framework, CuPBoP, which treats CUDA as a portable language in its own right. Compared to two commercial source-to-source solutions, CuPBoP offers a broader coverage and superior performance for the CUDA-to-CPU migration. Additionally, we evaluate the performance of CuPBoP against manually optimized CPU programs, highlighting the differences between CPU programs derived from CUDA and those that are manually optimized.
Furthermore, we demonstrate the hardware scalability of CuPBoP by showcasing its successful migration of CUDA to AMD GPUs.
To promote further research in this field, we have released CuPBoP as an open-source resource.
CUDA 专为英伟达™(NVIDIA®)GPU 设计,与非英伟达™(NVIDIA®)设备不兼容。在其他后端上执行 CUDA 可以促进软件生态系统的多样化,从而使硬件社区受益匪浅。为了满足可移植性的需求,我们的目标是开发一个能满足关键要求的框架,如广泛的覆盖范围、全面的端到端支持、卓越的性能和硬件可扩展性。然而,现有的将 CUDA 源代码翻译成其他高级语言的解决方案无法实现这些目标。与这些源代码到源代码的方法不同,我们提出了一个新颖的框架 CuPBoP,它将 CUDA 本身视为一种可移植语言。与两种商业源代码到源代码解决方案相比,CuPBoP 为 CUDA 到 CPU 的迁移提供了更广泛的覆盖范围和更优越的性能。此外,我们还评估了 CuPBoP 与经过人工优化的 CPU 程序的性能,强调了从 CUDA 派生的 CPU 程序与经过人工优化的 CPU 程序之间的差异。此外,我们还展示了 CuPBoP 的硬件可扩展性,成功地将 CUDA 移植到 AMD GPU。为促进该领域的进一步研究,我们已将 CuPBoP 作为开源资源发布。
期刊介绍:
ACS Applied Bio Materials is an interdisciplinary journal publishing original research covering all aspects of biomaterials and biointerfaces including and beyond the traditional biosensing, biomedical and therapeutic applications.
The journal is devoted to reports of new and original experimental and theoretical research of an applied nature that integrates knowledge in the areas of materials, engineering, physics, bioscience, and chemistry into important bio applications. The journal is specifically interested in work that addresses the relationship between structure and function and assesses the stability and degradation of materials under relevant environmental and biological conditions.