arXiv · 2411.17887
A Parallel Scan Algorithm in the Tensor Core Unit Model
Abstract
We present a parallel scan (prefix sum) algorithm in the Tensor Core Unit (TCU) model of computation. The TCU model assumes that multiplication between two square matrices of constant size $s$ is a basic operation. In the $(s^2, \ell)$-TCU model, we show that for inputs of size $n$, the algorithm has depth at most $2\lfloor \log_s (n)\rfloor$ and runs in $O(n(1 + \ell /s^2)/p + (s^2 + \ell) \log_s (n))$ time assuming $p$ tensor core units. Equivalently, the algorithm performs $O(n/s^2)$ multiplications of square matrices of size s.
Explore related subjects
Keep this discovery
Anastasios Zouzias, William F. McColl. 2024-11-26. A Parallel Scan Algorithm in the Tensor Core Unit Model. https://doi.org/10.1007/978-3-031-39698-4_33
Cite the original work for its findings. Save a collection to share your selection of sources.