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

DaggerFFT:一种使用任务调度的Julia分布式FFT框架

DaggerFFT: A Distributed FFT Framework Using Task Scheduling in Julia

Northeastern University(东北大学);Massachusetts Institute of Technology(麻省理工学院)

Sana Taghipour Anvari, Julian Samaroo, Matin Raayai Ardakani, David Kaeli

AI总结:

DaggerFFT是一种基于任务调度的Julia分布式FFT框架,通过动态调度提升CPU和GPU集群的FFT性能,实现高达2.6倍的加速。

摘要:

快速傅里叶变换(FFT)是一种基本的数值技术,在许多科学问题中都有广泛应用。随着科学模拟试图利用exascale系统,对能够有效利用现代异构高性能计算(HPC)系统的分布式FFT算法的需求日益增长。传统FFT算法在异构平台上常遇到性能瓶颈。大多数分布式FFT方法依赖静态任务分配并需要同步屏障,限制了可扩展性并影响整体资源利用率。本文介绍了DaggerFFT,一种在Julia中开发的分布式FFT框架,将高度并行的FFT计算视为动态调度的任务图。每个FFT阶段操作在单独定义的分布式数组上。FFT操作以在笔形或 slab 分割的DArrays上运行的DTasks表达。每个FFT阶段拥有自己的DArray,运行时使用Dagger的动态调度器将DTasks分配到设备上,该调度器使用工作窃取机制。我们展示了DaggerFFT的动态调度器在CPU和GPU后端上如何优于最先进的分布式FFT库,分别在CPU集群上实现高达2.6倍的加速,在GPU集群上实现高达1.35倍的加速。我们将DaggerFFT集成到Oceananigans.jl中,一个流体动力学框架中,证明了高层的任务调度运行时能够在大规模、真实世界模拟中提供优越的性能和模块性。

英文摘要:

The Fast Fourier Transform (FFT) is a fundamental numerical technique with widespread application in a range of scientific problems. As scientific simulations attempt to exploit exascale systems, there has been a growing demand for distributed FFT algorithms that can effectively utilize modern heterogeneous high-performance computing (HPC) systems. Conventional FFT algorithms commonly encounter performance bottlenecks, especially when run on heterogeneous platforms. Most distributed FFT approaches rely on static task distribution and require synchronization barriers, limiting scalability and impacting overall resource utilization. In this paper we present DaggerFFT, a distributed FFT framework, developed in Julia, that treats highly parallel FFT computations as a dynamically scheduled task graph. Each FFT stage operates on a separately defined distributed array. FFT operations are expressed as DTasks operating on pencil or slab partitioned DArrays. Each FFT stage owns its own DArray, and the runtime assigns DTasks across devices using Dagger's dynamic scheduler that uses work stealing. We demonstrate how DaggerFFT's dynamic scheduler can outperform state-of-the-art distributed FFT libraries on both CPU and GPU backends, achieving up to a 2.6x speedup on CPU clusters and up to a 1.35x speedup on GPU clusters. We have integrated DaggerFFT into Oceananigans.jl, a geophysical fluid dynamics framework, demonstrating that high-level, task-based runtimes can deliver both superior performance and modularity in large-scale, real-world simulations.

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

↑