云和HPC的GPU加速分子对接应用程序的可移植性:可移植的编译器指令能否在所有平台上提供性能?
Portability for GPU-accelerated molecular docking applications for cloud and HPC: can portable compiler directives provide performance across all platforms?
摘要:
基于结构的高通量药物样分子筛选已成为生物医学研究中的常用工具。最近,图形处理单元(GPU)的加速为分子对接程序提供了巨大的性能提升。云计算和高性能计算(HPC)资源都已用于具有分子对接程序的大屏幕;虽然NVIDIA GPU已主导了云计算和HPC资源,但AMD和英特尔等新供应商现在正在进入该领域,从而产生了跨不同GPU的软件可移植性问题。理想情况下,软件生产力可以最大限度地利用可移植的编程模型,这些模型能够在整个体系结构中保持高性能。虽然在许多情况下,编译器指令已被用作将基于CPU的程序的并行区域卸载到GPU加速器的简单方法,但它们也可能是一种有吸引力的编程模型,用于提供跨不同GPU供应商的可移植性,在这种情况下,移植过程可能会以相反的方向进行:从低级的特定于架构的代码到更高级别的基于指令的抽象。MiniMDock是一个新的迷你应用程序(miniapp),旨在捕获分子对接计算中发现的基本计算内核,例如用于药物发现工作,以测试跨GPU架构移植的不同解决方案。在这里,我们将MiniMDock扩展到使用OpenMP指令的GPU卸载,并比较使用CUDA的内核的性能,以及NVIDIA和AMD GPU上的HIP,以及不同的编译器,探索性能瓶颈。我们记录了这个反向移植过程,从高度优化的设备代码到使用指令的更高级别的版本,比较代码结构,并描述了在这项工作中克服的障碍。
英文摘要:
High-throughput structure-based screening of drug-like molecules has become a common tool in biomedical research. Recently, acceleration with graphics processing units (GPUs) has provided a large performance boost for molecular docking programs. Both cloud and high-performance computing (HPC) resources have been used for large screens with molecular docking programs; while NVIDIA GPUs have dominated cloud and HPC resources, new vendors such as AMD and Intel are now entering the field, creating the problem of software portability across different GPUs. Ideally, software productivity could be maximized with portable programming models that are able to maintain high performance across architectures. While in many cases compiler directives have been used as an easy way to offload parallel regions of a CPU-based program to a GPU accelerator, they may also be an attractive programming model for providing portability across different GPU vendors, in which case the porting process may proceed in the reverse direction: from low-level, architecture-specific code to higher-level directive-based abstractions. MiniMDock is a new mini-application (miniapp) designed to capture the essential computational kernels found in molecular docking calculations, such as are used in pharmaceutical drug discovery efforts, in order to test different solutions for porting across GPU architectures. Here we extend MiniMDock to GPU offloading with OpenMP directives, and compare to performance of kernels using CUDA, and HIP on both NVIDIA and AMD GPUs, as well as across different compilers, exploring performance bottlenecks. We document this reverse-porting process, from highly optimized device code to a higher-level version using directives, compare code structure, and describe barriers that were overcome in this effort.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。