arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.27607q-bio.PE
收藏

BEAGLE 4.1:用于跨不同并行架构的系统发育树计算的高性能库

BEAGLE 4.1: A high-performance library for computation on phylogenetic trees across diverse parallel architectures

The Scripps Research Institute(斯克里普斯研究所);Iowa State University(爱荷华州立大学);University of California, Los Angeles(加州大学洛杉矶分校);KU Leuven(鲁汶大学);University of Edinburgh(爱丁堡大学)

Karthik Gangavarapu, Xiang Ji, Yucai Shao, Philippe Lemey, Andrew Rambaut, Guy Baele, Marc A. Suchard

AI总结:

BEAGLE 4.1 是一个高性能统计系统发育学库,通过引入梯度评估算法和针对 ARM NEON 及 NVIDIA GPU 张量核的硬件实现,显著加速了系统发育树上的似然和梯度计算,在多种硬件上实现了高达十倍的加速。

摘要:

对系统发育树上的序列数据似然及其高维梯度的有效评估改进了最大似然和贝叶斯框架下的推断。这里,我们介绍 BEAGLE 4.1,一个用于统计系统发育学的高性能库,它结合了新算法来评估系统发育树上的这些梯度。我们还为似然和梯度提供了新的硬件实现,支持 ARM NEON 内部函数和 NVIDIA 图形处理单元(GPU)上的优化矩阵乘法单元——称为张量核。我们在多核 CPU 和 GPU 上跨多种模式和分类单元对库的性能扩展进行了基准测试,并比较了 NVIDIA 和 AMD GPU 带来的加速以及随 GPU 数量增加的性能扩展。我们显示,多核 CPU 实现相对于单线程 CPU 实现提供了高达四倍的加速,对于核苷酸和密码子模型分别提供了高达十倍的加速,性能通常随着分类单元和位点模式数量的增加而提高。对于实际数量的模式,GPU 优于多线程 CPU 实现,即使对于状态空间大小为 4 的小型核苷酸模型也是如此,而对于密码子模型,即使对于单个模式或四个分类单元,GPU 也提供了显著更高的性能增益。GPU 上的张量核相对于标准 CUDA 核为密码子模型提供了高达两倍的加速。在 ARM CPU 上使用 NEON 指令相对于非 SIMD 实现提供了高达约 1.3 倍的加速,在 8 个 CPU 线程时加速降至 1.1 倍。我们通过 BEAGLE 4.1 提供了这些评估梯度的新算法以及用于似然和梯度计算的高效硬件实现,以便它们可以轻松集成到系统发育软件包中。

英文摘要:

Efficient evaluation of sequence data likelihoods and their high-dimensional gradients on phylogenetic trees improves inference under both maximum-likelihood and Bayesian frameworks. Here, we present BEAGLE 4.1, a high-performance library for statistical phylogenetics that incorporates new algorithms to evaluate these gradients on phylogenetic trees. We also provide new hardware implementations for both likelihoods and gradients supporting ARM NEON intrinsics and optimized matrix multiplication units -- called tensor cores -- on NVIDIA graphics processing units (GPUs). We benchmark the performance scaling of the library across a number of patterns and taxa on multi-core CPUs and GPUs, and compare the speedup afforded by NVIDIA and AMD GPUs as well as performance scaling with an increasing number of GPUs. We show that multi-core CPU implementations provide up to a fourfold speedup over single-threaded CPU implementations and up to an tenfold speedup for nucleotide and codon models, respectively, with performance generally improving as the number of taxa and site patterns increases. GPUs outperform multi-threaded CPU implementations for a realistic number of patterns, even for nucleotide models with a small state-space size of 4, while for codon models they provide substantially higher performance gains even for a single pattern or four taxa. Tensor cores on GPUs provide up to 2-fold speedup relative to standard CUDA cores for codon models. Using NEON instructions on ARM CPUs affords up to a $\sim 1.3$-fold speedup over non-SIMD implementation with the speedup going down to 1.1-fold at 8 CPU threads. We provide these new algorithms to evaluate the gradient and efficient hardware implementations for both likelihood and gradient calculations through BEAGLE 4.1, such that they can be readily integrated into phylogenetic software packages.

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

↑