Strassen'S Algorithm Reloaded On Gpus

ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE(2020)

引用 13|浏览40
暂无评分
摘要
Conventional Graphics Processing Unit (GPU) implementations of Strassen's algorithm (STRASSEN) 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 STRASSEN primitives for GPUs that can be composed to generate a family of STRASSEN 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 STRASSEN. Overall, our 1-level STRASSEN can achieve up to 1.11x 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 STRASSEN can achieve 1.19x speedup with a crossover point at 7,680.
更多
查看译文
关键词
Strassen, GEMM, GPU, performance optimization, matrix multiplication, linear algebra, high-performance computing, Volta
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要