<?xml version="1.0" encoding="UTF-8"?>
<article key="pdf/10013375" mdate="2023-11-27 00:00:00">
	<author>Qiuyu Dai and  Haochong Zhang and  Xiangrong Liu</author>
	<title>Performance Analysis and Optimization for Diagonal Sparse MatrixVector Multiplication on Machine Learning Unit</title>
		<pages>665 - 676</pages>
		<year>2023</year>
	<volume>17</volume>
	<number>11</number>
	<journal>International Journal of Computer and Information Engineering</journal>
	<ee>https://publications.waset.org/10013375.pdf</ee>
	<url>https://publications.waset.org/vol/203</url>
	<publisher>World Academy of Science, Engineering and Technology</publisher>
	<abstract>Efficient matrixvector multiplication with diagonal sparse matrices is pivotal in a multitude of computational domains, ranging from scientific simulations to machine learning workloads. When encoded in the conventional Diagonal (DIA) format, these matrices often induce computational overheads due to extensive zeropadding and nonlinear memory accesses, which can hamper the computational throughput, and elevate the usage of precious compute and memory resources beyond necessity. The &amp;rsquo;DIAAdaptive&amp;rsquo; approach, a methodological enhancement introduced in this paper, confronts these challenges headon by leveraging the advanced parallel instruction sets embedded within Machine Learning Units (MLUs). This research presents a thorough analysis of the DIAAdaptive scheme&amp;rsquo;s efficacy in optimizing Sparse MatrixVector Multiplication (SpMV) operations. The scope of the evaluation extends to a variety of hardware architectures, examining the repercussions of distinct thread allocation strategies and cluster configurations across multiple storage formats. A dedicated computational kernel, intrinsic to the DIAAdaptive approach, has been meticulously developed to synchronize with the nuanced performance characteristics of MLUs. Empirical results, derived from rigorous experimentation, reveal that the DIAAdaptive methodology not only diminishes the performance bottlenecks associated with the DIA format but also exhibits pronounced enhancements in execution speed and resource utilization. The analysis delineates a marked improvement in parallelism, showcasing the DIAAdaptive scheme&amp;rsquo;s ability to adeptly manage the interplay between storage formats, hardware capabilities, and algorithmic design. The findings suggest that this approach could set a precedent for accelerating SpMV tasks, thereby contributing significantly to the broader domain of highperformance computing and dataintensive applications.</abstract>
	<index>Open Science Index 203, 2023</index>
</article>
