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

Cyclotron:一种用于表达处理器间通信的递归语言

Cyclotron: A Recurrence Language for Expressing Interprocessor Communication

Stanford University(斯坦福大学)

Shiv Sundram, Akhilesh Balasingam, Nathan Zhang, Kunle Olukotun, Fredrik Kjolstad

AI总结:

Cyclotron是一种用于表达处理器间通信的递归语言编译器,可将流数据算法编译为分布式处理器拓扑,在多CPU/GPU节点上的矩阵运算中性能优于ScaLAPACK等库,Cholesky的最优通信策略随问题规模和架构变化。

摘要:

我们提出了Cyclotron,这是一种使用递归方程表达流数据流算法的编译器,这些递归方程随后被编译为相互链接的处理器的分布式拓扑结构。我们的编译器将逻辑迭代空间上的递归语言降低为包含发送、接收和计算操作的每个处理器程序。在这些递归中,数据访问不限于对内存的外部访问;数据可以独立存在于迭代空间本身,允许内部点直接与其他点通信值。用户直接在递归语言中指定这种通信,这使他们能够表达各种通信模式,例如最近邻脉动交换、一对多广播、双向分裂环或非对称分段广播模式,这些模式通常不受标准分布式线性代数库支持。这些递归描述了算法和通信,与它们如何映射到硬件无关。然后,程序员选择哪些维度跨处理器执行,哪些维度随时间执行,而无需重写整个程序。用户仅指定迭代空间上的数据依赖关系,编译器会根据所选的时空映射,为每个进程安全地生成具有正确通信和计算算子放置的程序。我们在多达16个CPU节点和16个GPU上评估了分布式矩阵乘法、TRSM、Cholesky以及融合的Cholesky-TRSM,并与ScaLAPACK、SLATE和cuSolverMp进行了比较。Cyclotron与这些手动优化的库具有竞争力,并且在许多情况下表现优于它们;对于Cholesky,最佳通信策略会随问题规模和架构而变化。

英文摘要:

We present Cyclotron, a compiler that expresses streaming dataflow algorithms using recurrence equations, which are then compiled to distributed topologies of interlinked processors. Our compiler lowers a language of recurrences over logical iteration spaces into per-processor programs of sends, receives, and computations. In these recurrences, data accesses are not limited to external accesses to memory; data can live separately on the iteration space itself, allowing internal points to communicate values directly with other points. Users specify this communication directly in the recurrence language, which allows them to express various communication patterns such as a nearest-neighbor systolic exchange, a one-to-all broadcast, a bidirectional split ring, or an asymmetric and piecewise broadcast pattern, which are often not supported by standard distributed linear algebra libraries. These recurrences describe the algorithm and communication independently of how they map onto the hardware. A programmer then chooses which dimensions execute across processors and which execute over time, without rewriting the entire program. Users only specify data dependencies across the iteration space, and the compiler safely generates a program, per process, with correct placement of both communication and computational operators according to the chosen space--time mapping. We evaluate distributed matrix multiplication, TRSM, Cholesky, and fused Cholesky--TRSM on up to 16 CPU nodes and 16 GPUs, comparing against ScaLAPACK, SLATE, and cuSolverMp. Cyclotron is competitive with and often outperforms these hand-optimized libraries; for Cholesky, the best communication strategy changes with problem size and architecture.

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

↑