Skip to main navigation Skip to search Skip to main content

Vectorizing SpMV by Exploiting Dynamic Regular Patterns

  • Beihang University
  • National University of Singapore

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Modern optimizing compilers can exploit memory access and computation patterns to generate vectorized codes. However, such patterns in irregular programs such as SpMV are unknown until runtime due to the input dependence. Thus, either compiler's static optimization or profile-guided optimization cannot represent the patterns for any common input, which leads to suboptimal vectorization. To address the above drawback, we propose DynVec, a framework to automatically exploit regular patterns buried deeply inside SpMV programs and apply corresponding optimizations for better vectorization. Due to the ability to represent instruction features and identify regular patterns with effective feature extraction and data re-arranging methods, DynVec can generate highly efficient vectorized codes by replacing gather/scatter/reduction operations with optimized operation groups. We evaluate DynVec on optimizing SpMV with representative sparse matrix datasets. The experiment results show that DynVec achieves significant speedup compared to the state-of-the-art SpMV implementations across a range of platforms.

Original languageEnglish
Title of host publication51st International Conference on Parallel Processing, ICPP 2022 - Main Conference Proceedings
PublisherAssociation for Computing Machinery
ISBN (Electronic)9781450397339
DOIs
StatePublished - 29 Aug 2022
Event51st International Conference on Parallel Processing, ICPP 2022 - Virtual, Online, France
Duration: 29 Aug 20221 Sep 2022

Publication series

NameACM International Conference Proceeding Series

Conference

Conference51st International Conference on Parallel Processing, ICPP 2022
Country/TerritoryFrance
CityVirtual, Online
Period29/08/221/09/22

Keywords

  • Performance Optimization
  • Regular Pattern
  • SpMV
  • Vectorization

Fingerprint

Dive into the research topics of 'Vectorizing SpMV by Exploiting Dynamic Regular Patterns'. Together they form a unique fingerprint.

Cite this