An Optimized Framework for Matrix Factorization on the New Sunway Many-core Platform

Author:

Ma Wenjing1ORCID,Liu Fangfang1ORCID,Chen Daokun2ORCID,Lu Qinglin2ORCID,Hu Yi2ORCID,Wang Hongsen2ORCID,Yuan Xinhui3ORCID

Affiliation:

1. Institute of Software, Chinese Academy of Sciences, China and State Key Laboratory of Computer Science, Beijing, China

2. Institute of Software, Chinese Academy of Sciences, China and University of Chinese Academy of Sciences, Beijing, China

3. National Research Centre of Parallel Computer Engineering and Technology, Beijing, China

Abstract

Matrix factorization functions are used in many areas and often play an important role in the overall performance of the applications. In the LAPACK library, matrix factorization functions are implemented with blocked factorization algorithm, shifting most of the workload to the high-performance Level-3 BLAS functions. But the non-blocked part, the panel factorization, becomes the performance bottleneck, especially for small- and medium-size matrices that are the common cases in many real applications. On the new Sunway many-core platform, the performance bottleneck of panel factorization can be alleviated by keeping the panel in the LDM for the panel factorization. Therefore, we propose a new framework for implementing matrix factorization functions on the new Sunway many-core platform, facilitating the in-LDM panel factorization. The framework provides a template class with wrapper functions, which integrates inter-CPE communication for the Level-1 and Level-2 BLAS functions with flexible interfaces and can accommodate different partitioning schemes. With the framework, writing panel factorization code with data residing in the LDM space can be done with much higher productivity. We implemented three functions ( dgetrf , dgeqrf , and dpotrf ) based on the framework and compared our work with a CPE_BLAS version, which uses the original LAPACK implementation linked with optimized BLAS library that runs on the CPE mesh. Using the most favorable partitioning, the panel factorization part achieves speedup of up to 26.3, 19.1, and 18.2 for the three matrix factorization functions. For the whole function, our implementation is based on a carefully tuned recursion framework, and we added specific optimization to some subroutines used in the factorization functions. Overall, we obtained average speedup of 9.76 on dgetrf , 10.12 on dgeqrf , and 4.16 on dpotrf , compared to the CPE_BLAS version. Based on the current template class, our work can be extended to support more categories of linear algebra functions.

Funder

Special Project on High Performance Computing under the National Key R& D Program of China

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Information Systems,Software

Reference39 articles.

1. Factorization and Inversion of a Million Matrices using GPUs: Challenges and Countermeasures

2. Fast Cholesky factorization on GPUs for batch and native modes in MAGMA

3. Ahmad Abdelfattah, Stanimire Tomov, and Jack Dongarra. 2019. Progressive optimization of batched LU factorization on GPUs. In IEEE High Performance Extreme Computing Conference (HPEC’19). IEEE, Waltham, MA.

4. Ahmad Abdelfattah, Stan Tomov, and Jack Dongarra. 2022. Batch QR factorization on GPUs: Design, optimization, and tuning. In International Conference on Computational Science. Springer International Publishing, Cham, 60–74.

5. QR Factorization on a Multicore Node Enhanced with Multiple GPU Accelerators

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3