Cargando…
Acceleration of Approximate Matrix Multiplications on GPUs
Matrix multiplication is important in various information-processing applications, including the computation of eigenvalues and eigenvectors, and in combinatorial optimization algorithms. Therefore, reducing the computation time of matrix products is essential to speed up scientific and practical ca...
Autores principales: | , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2023
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10453036/ https://www.ncbi.nlm.nih.gov/pubmed/37628160 http://dx.doi.org/10.3390/e25081130 |
_version_ | 1785095822304608256 |
---|---|
author | Okuyama, Takuya Röhm, André Mihana, Takatomo Naruse, Makoto |
author_facet | Okuyama, Takuya Röhm, André Mihana, Takatomo Naruse, Makoto |
author_sort | Okuyama, Takuya |
collection | PubMed |
description | Matrix multiplication is important in various information-processing applications, including the computation of eigenvalues and eigenvectors, and in combinatorial optimization algorithms. Therefore, reducing the computation time of matrix products is essential to speed up scientific and practical calculations. Several approaches have been proposed to speed up this process, including GPUs, fast matrix multiplication libraries, custom hardware, and efficient approximate matrix multiplication (AMM) algorithms. However, research to date has yet to focus on accelerating AMMs for general matrices on GPUs, despite the potential of GPUs to perform fast and accurate matrix product calculations. In this paper, we propose a method for improving Monte Carlo AMMs. We also give an analytical solution for the optimal values of the hyperparameters in the proposed method. The proposed method improves the approximation of the matrix product without increasing the computation time compared to the conventional AMMs. It is also designed to work well with parallel operations on GPUs and can be incorporated into various algorithms. Finally, the proposed method is applied to a power method used for eigenvalue computation. We demonstrate that, on an NVIDIA A100 GPU, the computation time can be halved compared to the conventional power method using cuBLAS. |
format | Online Article Text |
id | pubmed-10453036 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2023 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-104530362023-08-26 Acceleration of Approximate Matrix Multiplications on GPUs Okuyama, Takuya Röhm, André Mihana, Takatomo Naruse, Makoto Entropy (Basel) Article Matrix multiplication is important in various information-processing applications, including the computation of eigenvalues and eigenvectors, and in combinatorial optimization algorithms. Therefore, reducing the computation time of matrix products is essential to speed up scientific and practical calculations. Several approaches have been proposed to speed up this process, including GPUs, fast matrix multiplication libraries, custom hardware, and efficient approximate matrix multiplication (AMM) algorithms. However, research to date has yet to focus on accelerating AMMs for general matrices on GPUs, despite the potential of GPUs to perform fast and accurate matrix product calculations. In this paper, we propose a method for improving Monte Carlo AMMs. We also give an analytical solution for the optimal values of the hyperparameters in the proposed method. The proposed method improves the approximation of the matrix product without increasing the computation time compared to the conventional AMMs. It is also designed to work well with parallel operations on GPUs and can be incorporated into various algorithms. Finally, the proposed method is applied to a power method used for eigenvalue computation. We demonstrate that, on an NVIDIA A100 GPU, the computation time can be halved compared to the conventional power method using cuBLAS. MDPI 2023-07-27 /pmc/articles/PMC10453036/ /pubmed/37628160 http://dx.doi.org/10.3390/e25081130 Text en © 2023 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). |
spellingShingle | Article Okuyama, Takuya Röhm, André Mihana, Takatomo Naruse, Makoto Acceleration of Approximate Matrix Multiplications on GPUs |
title | Acceleration of Approximate Matrix Multiplications on GPUs |
title_full | Acceleration of Approximate Matrix Multiplications on GPUs |
title_fullStr | Acceleration of Approximate Matrix Multiplications on GPUs |
title_full_unstemmed | Acceleration of Approximate Matrix Multiplications on GPUs |
title_short | Acceleration of Approximate Matrix Multiplications on GPUs |
title_sort | acceleration of approximate matrix multiplications on gpus |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10453036/ https://www.ncbi.nlm.nih.gov/pubmed/37628160 http://dx.doi.org/10.3390/e25081130 |
work_keys_str_mv | AT okuyamatakuya accelerationofapproximatematrixmultiplicationsongpus AT rohmandre accelerationofapproximatematrixmultiplicationsongpus AT mihanatakatomo accelerationofapproximatematrixmultiplicationsongpus AT narusemakoto accelerationofapproximatematrixmultiplicationsongpus |