Skip to content
KPI Science News
ISSN 2617-5509 · e‑ISSN 2663-7472 Open Access · CC BY 4.0
Vol. · Issue 2 · 2020 Jun 9, 2020 article

METHOD OF FAST MATRIX MULTIPLICATION UNDER ARM ARCHITECTURE USING SIMD INSTRUCTIONS

ID
Ivan A. Dychka Corresponding Igor Sikorsky Kyiv Polytechnic Institute, Ukraine Ukraine
DV
Denys A. Vinnyk Igor Sikorsky Kyiv Polytechnic Institute, Ukraine Ukraine
YB
Yuriy V. Bukhtiyarov Igor Sikorsky Kyiv Polytechnic Institute, Ukraine Ukraine
VY
Vasyl Ya. Yurchyshyn Igor Sikorsky Kyiv Polytechnic Institute, Ukraine Ukraine
PublishedJun 9, 2020
KPISN 2 VOL · 2
VOL · ISS 2 · 2020 View issue

Abstract

Background. Matrix multiplication is a rather complicated algorithm with a large number of operations. An additional problem is the nonlinear memory traversal of matrices. Matrix multiplication is widely used in various fields, such as neural networks, solutions of linear equation systems, matrix transformations, and so on. Therefore, it is important to develop a method of matrix multiplication, which will take into account the problems of the location of the matrices in memory, and will effectively manage the data when reused. Objective. The purpose of the paper is to develop a method of fast matrix multiplication of two matrices, as well as multiplying the matrix by the transposed matrix and by a list of vectors (including special case for only one vector), as well as to implement it as a function with optimization for ARM architecture processors. The function must be able to handle different types of data and submatrices. The integer result can be scaled. Methods. The main ideas of the developed method are simultaneous work with several rows/columns of input matrices and their splitting into blocks, which will allow the algorithm to run on the same memory for a while. The C programming language was chosen for implementation. SIMD instructions were used to increase productivity. We also need to properly organize the memory preloading for effective implementation under the ARM architecture. Results. A function that performs matrix multiplication by the developed method with the necessary parameters was implemented as a result of the study. Tests on various sizes and types have shown that the implemented function is faster than analogues from the OpenCV2 and Eigen 3 libraries. Testing was done using the vipmed utility for running and measuring features developed for enterprise use at VIT. Conclusions. The proposed matrix multiplication method gives the expected acceleration of matrix multiplication operations, has passed evaluation test for use and meets the target requirements. For further work, it is necessary to study in more detail the influence of the cache at different levels and compare with other existing libraries.

Keywords

References

  1. Application of Matrices in Real-Life [Online]. Available: https://www.ukessays.com/essays/mathematics/application-of-matrices-in-real-life-problems.php
  2. Le Gall, François, “Powers of tensors and fast matrix multiplication”, in Proc. 39th Int. Symp. Symbolic and Algebraic Computation , Kobe, Japan, 2014, pp. 157–164.
  3. V. Strassen, “Gaussian elimination is not optimal”, Numer. Math. , vol. 13, no. 4, pp. 354–356, 1969.
  4. S. Robinson, “Toward an optimal algorithm for matrix multiplication”, SIAM News , vol. 38, no. 9, 2005.
  5. C.L. Lawson et al. , “Basic linear algebra subprograms for FORTRAN usage”, in ACM Trans. Math. Software , 1979, pp. 308–323.
  6. OpenCV official site [Online]. Available: https://opencv.org/
  7. Eigen Official Site [Online]. Available: http://eigen.tuxfamily.org/
  8. ARM Official Site [Online]. Available: https://developer.arm.com/
  9. ARM Information Center [Online]. Available: https://infocenter.arm.com/
§ 06 — Related

Similar articles in this journal

Related peer-reviewed studies published in this journal.
View all issues

MODIFICATION OF THE SEPARABLE PHYSICS-INFORMED NEURAL NETWORK METHOD FOR THE APPROXIMATE SOLUTION OF A MIXED PROBLEM FOR THE HEAT CONDUCTION EQUATION IN AN ELLIPTICAL DOMAIN

Valerii Los, Oleksandr Riakhin

Background. Parabolic differential equations are mathematical models in engineering designed to study wide range of applied models. This necessitates the development of…

#heat conduction equation #mixed parabolic problem #elliptical domain #physics-informed neural network
10.20535/kpisn.2026.3.367316

Most read articles by the same author(s)

Similar Articles

1-10 of 11

You may also start an advanced similarity search for this article.