Litcius/Paper detail

Strassen’s Algorithm Reloaded on GPUs

Jianyu Huang, Chenhan D. Yu, Robert A. Geijn

2020ACM Transactions on Mathematical Software25 citationsDOIOpen Access PDF

Abstract

Conventional Graphics Processing Unit (GPU) implementations of Strassen’s algorithm (S trassen ) rely on the existing high-performance matrix multiplication ( gemm ), trading space for time. As a result, such approaches can only achieve practical speedup for relatively large, “squarish” matrices due to the extra memory overhead, and their usages are limited due to the considerable workspace. We present novel S trassen primitives for GPUs that can be composed to generate a family of S trassen algorithms. Our algorithms utilize both the memory and thread hierarchies on GPUs, reusing shared memory and register files inherited from gemm , fusing additional operations, and avoiding extra workspace. We further exploit intra- and inter-kernel parallelism by batching, streaming, and employing atomic operations. We develop a performance model for NVIDIA Volta GPUs to select the appropriate blocking parameters and predict the performance for gemm and S trassen . Overall, our 1-level S trassen can achieve up to 1.11× speedup with a crossover point as small as 1,536 compared to cublasSgemm on a NVIDIA Tesla V100 GPU. With additional workspace, our 2-level S trassen can achieve 1.19× speedup with a crossover point at 7,680.

Topics & Concepts

SpeedupComputer scienceStrassen algorithmParallel computingCUDAMatrix multiplicationGraphics processing unitWorkspaceMemory footprintAlgorithmOperating systemRobotArtificial intelligenceQuantum mechanicsQuantumPhysicsParallel Computing and Optimization TechniquesInterconnection Networks and SystemsLow-power high-performance VLSI design
Strassen’s Algorithm Reloaded on GPUs | Litcius