利用对称性调度经典矩阵乘法
Using Symmetry to Schedule Classical Matrix Multiplication
摘要:
在一台具有特定互连拓扑结构的新机器上,算法设计人员利用对算法对称性的直觉来设计时间和通信效率高的调度,将算法映射到机器上。是否有一个系统的程序来设计时间表?我们提出了一种新的技术来设计没有非平凡依赖的算法的时间表,专注于经典的矩阵乘法算法。我们将指令集$X$算法的对称性建模为集合$X$到自身的双射合成所形成的群的作用。我们建模的机器作为组$N\times Δ$,其中$N$和$Δ$分别表示互连拓扑和时间增量的行动,在一组$P\times T$的处理器迭代时间步长。我们模型的时间表之间的集合$X$和它的对称性和集合$P\times T$的对称性$N\timesΔ$的保序等变映射。这样的等变映射是一组包含群同态的代数方程的解。我们将时间和通信成本与这些方程的解联系起来。我们解决这些方程的经典矩阵乘法算法,并表明,等变映射对应于许多拓扑结构的时间和通信效率的时间表。我们恢复众所周知的变种,包括大炮的算法和通信避免“2.5D”算法的环形互连,脉动计算平面六边形VLSI阵列,递归算法的胖树,高速缓存不经意的算法的理想高速缓存模型,和空间有界的并行存储层次结构模型的时间表。这表明,一类新的机器的时间表的设计可以由代数方程的解来激励。
英文摘要:
Presented with a new machine with a specific interconnect topology, algorithm designers use intuition about the symmetry of the algorithm to design time and communication-efficient schedules that map the algorithm to the machine. Is there a systematic procedure for designing schedules? We present a new technique to design schedules for algorithms with no non-trivial dependencies, focusing on the classical matrix multiplication algorithm. We model the symmetry of algorithm with the set of instructions $X$ as the action of the group formed by the compositions of bijections from the set $X$ to itself. We model the machine as the action of the group $N\times Δ$, where $N$ and $Δ$ represent the interconnect topology and time increments respectively, on the set $P\times T$ of processors iterated over time steps. We model schedules as symmetry-preserving equivariant maps between the set $X$ and a subgroup of its symmetry and the set $P\times T$ with the symmetry $N\timesΔ$. Such equivariant maps are the solutions of a set of algebraic equations involving group homomorphisms. We associate time and communication costs with the solutions to these equations. We solve these equations for the classical matrix multiplication algorithm and show that equivariant maps correspond to time- and communication-efficient schedules for many topologies. We recover well known variants including the Cannon's algorithm and the communication-avoiding "2.5D" algorithm for toroidal interconnects, systolic computation for planar hexagonal VLSI arrays, recursive algorithms for fat-trees, the cache-oblivious algorithm for the ideal cache model, and the space-bounded schedule for the parallel memory hierarchy model. This suggests that the design of a schedule for a new class of machines can be motivated by solutions to algebraic equations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。