# Optimizing the Linear Fascicle Evaluation Algorithm for Multi-Core and   Many-Core Systems

**Authors:** Karan Aggarwal, Uday Bondhugula

arXiv: 1905.06234 · 2019-07-25

## TL;DR

This paper presents optimized algorithms for sparse matrix-vector multiplication in neuroscience applications, achieving significant speedups on multi-core CPUs and GPUs by combining platform-independent and platform-specific techniques.

## Contribution

It introduces a comprehensive optimization framework for SpMV operations in tensor-decomposed datasets, improving performance on both CPUs and GPUs.

## Key findings

- CPU speedup of 27.12x on 16-core systems
- GPU speedup of 5.2x over reference implementations
- Effective optimization techniques for irregular sparse data

## Abstract

Sparse matrix-vector multiplication (SpMV) operations are commonly used in various scientific applications. The performance of the SpMV operation often depends on exploiting regularity patterns in the matrix. Various representations have been proposed to minimize the memory bandwidth bottleneck arising from the irregular memory access pattern involved. Among recent representation techniques, tensor decomposition is a popular one used for very large but sparse matrices. Post sparse-tensor decomposition, the new representation involves indirect accesses, making it challenging to optimize for multi-cores and GPUs.   Computational neuroscience algorithms often involve sparse datasets while still performing long-running computations on them. The LiFE application is a popular neuroscience algorithm used for pruning brain connectivity graphs. The datasets employed herein involve the Sparse Tucker Decomposition (STD), a widely used tensor decomposition method. Using this decomposition leads to irregular array references, making it very difficult to optimize for both CPUs and GPUs. Recent codes of the LiFE algorithm show that its SpMV operations are the key bottleneck for performance and scaling. In this work, we first propose target-independent optimizations to optimize these SpMV operations, followed by target-dependent optimizations for CPU and GPU systems. The target-independent techniques include: (1) standard compiler optimizations, (2) data restructuring methods, and (3) methods to partition computations among threads. Then we present the optimizations for CPUs and GPUs to exploit platform-specific speed. Our highly optimized CPU code obtain a speedup of 27.12x over the original sequential CPU code running on 16-core Intel Xeon (Skylake-based) system, and our optimized GPU code achieves a speedup of 5.2x over a reference optimized GPU code version on NVIDIA's GeForce RTX 2080 Ti GPU.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1905.06234/full.md

## Figures

32 figures with captions in the complete paper: https://tomesphere.com/paper/1905.06234/full.md

## References

106 references — full list in the complete paper: https://tomesphere.com/paper/1905.06234/full.md

---
Source: https://tomesphere.com/paper/1905.06234