arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.08394cs.SE
收藏

PyExaFMM:使用Python和Numba设计高性能软件的一次实践

PyExaFMM: an exercise in designing high-performance software with Python and Numba

Srinath Kailasa, Tingyu Wang, Lorena A. Barba, Timo Betcke

AI总结:

本文通过PyExaFMM(基于Numba的多线程快速多极算法实现)的开发实践,探讨了用Python和Numba设计高性能软件的挑战,表明其难度不亚于编译语言。

摘要:

Numba是一个改变游戏规则的编译器,用于Python高性能计算。它生成的机器代码在单线程Python解释器之外运行,并充分利用现代CPU的资源。这意味着支持并行多线程和自动向量化(如果可用),与C++或Fortran等编译语言一样。在本文中,我们记录了开发PyExaFMM的经验,这是快速多极算法的一个多线程Numba实现,该算法具有非线性数据结构和大量数据组织。我们发现,为复杂算法设计高性能Numba代码可能与用编译语言编写一样具有挑战性。

英文摘要:

Numba is a game-changing compiler for high-performance computing with Python. It produces machine code that runs outside of the single-threaded Python interpreter and that fully utilizes the resources of modern CPUs. This means support for parallel multithreading and auto vectorization if available, as with compiled languages such as C++ or Fortran. In this article we document our experience developing PyExaFMM, a multithreaded Numba implementation of the Fast Multipole Method, an algorithm with a non-linear data structure and a large amount of data organization. We find that designing performant Numba code for complex algorithms can be as challenging as writing in a compiled language.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑