Frontiers of Data and Computing ›› 2025, Vol. 7 ›› Issue (5): 54-64.

CSTR: 32002.14.jfdc.CN10-1649/TP.2025.05.005

doi: 10.11871/jfdc.issn.2096-742X.2025.05.005

• Special Issue: New Domestic Computing Power Empowers the Development of Scientific Computing Applications • Previous Articles     Next Articles

Porting and Optimization of LIBXC on the Domestic Heterogeneous Platform

SHEN Ao(),YAN Yuqi,BIE Lihua*()   

  1. Hua Zhong Agricultural University, Hubei Key Laboratory of Agricultural Bioinformatics, Wuhan, Hubei 430070, China
  • Received:2025-02-17 Online:2025-10-20 Published:2025-10-23
  • Contact: BIE Lihua E-mail:shen_ao@webmail.hzau.ed-u.cn;biebie@mail.hzau.edu.cn

Abstract:

[Objective] LLIBXC is a widely used exchange-correlation functional library in quantum chemistry software and has been integrated into mainstream quantum chemistry program packages. Porting and optimizing LIBXC on a homegrown acceleration platform is of great significance for enhancing the computational capabilities of quantum chemistry software and advancing related research. [Methods] Based on the HIP architecture, this study automated the source code translation of LIBXC and reconfigured the building system using the cross-platform tool CMake. Manual optimizations and code modifications were performed to address unsupported platform-specific features, successfully enabling LIBXC’s porting to the domestic heterogeneous platform. Additionally, optimizations such as pinned memory and stream technology were introduced to further improve the performance. [Results] The ported and optimized LIBXC library passes regression testing, achieving full compliance with accuracy requirements. Performance evaluations demonstrate that the speedup of LDA functionals can exceed 1,000 times, and GGA functionals for energy calculations can reach up to 1,699 times speedup compared to the single-threaded CPU version. Under the same testing conditions, the performance of a single acceleration card is comparable to that of the NVIDIA Tesla V100. [Conclusions] This work provides a foundational technical support for the localization of quantum chemistry software, facilitating the porting and optimization of such software on domestic platforms. It contributes to the ongoing development of the software ecosystem for China’s homegrown supercomputing platforms.

Key words: exchange-correlation functional, heterogeneous computing, unified virtual memory, stream, Heterogeneous-compute Interface for Portability