Fortran的`do concurrent`在GPU上的可移植性
Portability of Fortran's `do concurrent' on GPUs
AI总结:
本文探讨了Fortran的`do concurrent`循环在不同GPU厂商间的可移植性,使用太阳表面磁通量演化代码HipFT,分析了实现与编译细节及数据移动策略,并展示了在数据中心和消费级平台上的性能表现。
摘要:
人们持续关注使用标准语言构造进行加速计算,以避免(有时是特定厂商的)外部API。对于Fortran代码,`do concurrent` (DC) 循环已在NVIDIA平台上成功演示。然而,在其他平台上对DC的支持耗费了更长时间来实现。最近,Intel在其编译器中添加了DC GPU卸载支持,HPE也为AMD GPU添加了该支持。在本文中,我们使用生产中的太阳表面磁通量演化代码HipFT,探讨了在各GPU厂商间使用DC的当前可移植性。我们讨论了实现和编译细节,包括与使用统一内存系统相比,何时何地需要或期望使用指令式API进行数据移动。展示了在数据中心和消费级平台上所达到的性能。
英文摘要:
There is a continuing interest in using standard language constructs for accelerated computing in order to avoid (sometimes vendor-specific) external APIs. For Fortran codes, the {\tt do concurrent} (DC) loop has been successfully demonstrated on the NVIDIA platform. However, support for DC on other platforms has taken longer to implement. Recently, Intel has added DC GPU offload support to its compiler, as has HPE for AMD GPUs. In this paper, we explore the current portability of using DC across GPU vendors using the in-production solar surface flux evolution code, HipFT. We discuss implementation and compilation details, including when/where using directive APIs for data movement is needed/desired compared to using a unified memory system. The performance achieved on both data center and consumer platforms is shown.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。