メニーコアアーキテクチャにおける疎行列計算の性能最適化
侑亮 長坂, Yusuke Nagasaka · Institutional Repositories DataBase (IRDB) · 2019
Many-core architectures such as Graphic Processing Units (GPUs) and Many Integrated Core architectures (MICs) are becoming mainstream in high performance computing platform, accelerating the performance of various kinds of applications such as simulations, Big Data analytics and Machine Learning.Currently, areas for improving application performance on many-core processors include operations on sparse matrices, which are mainly occupied by zero elements.Sparse matrices are used in various fields, such as the problem matrix in simulations or the adjacency matrix in graph processing, and it is crucial to accelerate the kernels for processing sparse matrices in a wide range of applications.However, the kernels for sparse matrix operations on many-core processors still have several performance issues.There are two main issues with optimizing sparse matrix kernels on many-core processors.The first issue deals with memory access.A sparse matrix is usually compressed using sparse matrix format, holding only non-zero elements with value and indices information.This increases byte per flop ratio while the byte per flop ratio of many-core processors is relatively low compared to modern multicore CPUs, resulting in much waste of computing capability of many-core processors.Furthermore, a kernel based on a sparse matrix format yields indirect memory access resulting in frequent cache misses, especially on many-core processors, whose cache capacity is small.The second issue is concerned with load balancing.The computation complexity is determined by the pattern or number of non-zero elements in the sparse matrix.Non-sophisticated task assignment causes load imbalance wasting the massive parallelism of many-core architectures.In addition, another load-balancing issue emerges when processing many kernels for sparse matrices in parallel.Firstly, for sparse matrix vector multiplication (SpMV), we propose the Non-Uniformly Segmented (NUS) format and the Adaptive Multi-level Blocking (AMB) format to tackle the memory access and load balancing issues of sparse matrix operations on many-core architectures.By dividing the matrix along the column, the memory access to input vector elements attains better cache locality.In the AMB format, furthermore, the number of bits for holding the indices of non-zero elements is reduced, and the contiguous non-zero elements in the matrix is treated as "one block" in order to reduce the amount of bytes accessed, thereby alleviating high byte per flop ratio.Performance evaluation using i
Cited by 0 works. Open-access PDF