62
2

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 ss is a basic operation. In the (s2,)(s^2, \ell)-TCU model, we show that for inputs of size nn, the algorithm has depth at most 2logs(n)2\lfloor \log_s (n)\rfloor and runs in O(n(1+/s2)/p+(s2+)logs(n))O(n(1 + \ell /s^2)/p + (s^2 + \ell) \log_s (n)) time assuming pp tensor core units. Equivalently, the algorithm performs O(n/s2)O(n/s^2) multiplications of square matrices of size s.

View on arXiv
Comments on this paper

We use cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from. See our policy.