• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2024, Vol. 46 ›› Issue (08): 1372-1380.

• 高性能计算 • 上一篇    下一篇

基于DPCT的序列比对软件迁移与性能评估

李沛桢,张洋,陈文波   

  1. (兰州大学信息科学与工程学院,甘肃 兰州 730000)

  • 收稿日期:2023-11-01 修回日期:2023-12-24 接受日期:2024-08-25 出版日期:2024-08-25 发布日期:2024-09-02

Sequence alignment software migration and performance evaluation based on DPCT

LI Pei-zhen,ZHANG Yang,CHEN Wen-bo   

  1. (School of Information Science & Engineering,Lanzhou University,Lanzhou 730000,China)
  • Received:2023-11-01 Revised:2023-12-24 Accepted:2024-08-25 Online:2024-08-25 Published:2024-09-02

摘要: 利用GASAL2序列比对软件探索CUDA程序迁移到DPC++的过程。迁移过程中利用DPCT工具自动将CUDA API转换至DPC++API。然而,迁移后的代码仍需经过适配和修改才能正确编译和运行。评估DPCT工具从CUDA程序迁移到DPC++程序的有效性,并展示DPC++在不同架构下的高效性。实验证明迁移后的程序保持了原始程序的精确度,且无需代码修改便可在异构设备Intel GPU架构上运行,同时迁移后的基于DPC++的GASAL2异构计算性能可以达到原始基于CUDA GASAL2的计算性能的大约90%~95%,充分展现了DPC++异构编程的可行性,为跨平台异构编程充分利用更广泛的硬件支持提供了有前景的解决方案。

关键词: 异构计算, oneAPI, 生物信息学, 序列比对

Abstract: This paper explores the process of migrating CUDA programs to DPC++ using the GASAL2 sequence alignment software. The DPCT tool is utilized during the migration process to automatically convert CUDA APIs to DPC++ APIs. However, the migrated code still requires adaptation and modification to compile and run correctly. This paper evaluates the effectiveness of the DPCT tool in migrating CUDA programs to DPC++ and demonstrates the high-efficiency performance of DPC++ across different architectures. Experiments show that the migrated program maintains the accuracy of the original program and can run on heterogeneous devices with the Intel GPU architecture without code modification. At the same time, the migrated DPC++-based GASAL2 heterogeneous computing performance can reach approximately 90%~95% of the original CUDA-based GASAL2 computing performance, fully demonstrating the feasibility of DPC++ heterogeneous programming. The results provide a promising solution for cross-platform heterogeneous programming to fully utilize a wider range of hardware support.

Key words: heterogeneous computing, oneAPI, bioinformatics, sequence alignment