IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v12y2024i3p422-d1328019.html
   My bibliography  Save this article

Multithreaded Reproducible Banded Matrix-Vector Multiplication

Author

Listed:
  • Tao Tang

    (College of Computer Science and Technology, National University of Defense Technology, Changsha 410073, China)

  • Haijun Qi

    (College of Computer Science and Technology, National University of Defense Technology, Changsha 410073, China)

  • Qingfeng Lu

    (College of Computer Science and Technology, National University of Defense Technology, Changsha 410073, China)

  • Hao Jiang

    (College of Computer Science and Technology, National University of Defense Technology, Changsha 410073, China)

Abstract

Reproducibility refers to getting bitwise identical floating point results from multiple runs of the same program, is an important basis for debugging or correctness checking in many codes. However the round-off error and non-associativity of floating point makes attaining reproducibility a challenge in large-scale, long-term parallel computing or solving ill conditioned problems. The dgbmv performs general banded matrix-vector multiplication for double precision, is the most basic Level-2 operation in BLAS. First, we designed a reproducible algorithm for banded matrix-vector multiplication repro _ dgbmv based on the technique of error-free transformation. Then the error of the algorithm is analyzed. Second, the algorithm is parallelized into repro _ dgbmv _ thread on ARM and x86 platforms. The numerical test results verify that repro _ dgbmv _ thread is reproducible and has higher accuracy than ordinary dgbmv . In numerical experiments on ARM platform, as the number of threads increases from 1 to 8, the run time of this algorithm is reduced by 5.2–7 times, while the run time of multithreaded dgbmv is only reduced by 2.2–3.8 times. In numerical experiments on x86 platform, as the number of threads increases from 1 to 15, the run time of this algorithm is reduced by 7.7–10.6 times, while the run time of multithreaded dgbmv is only reduced by 4.2–6.8 times.

Suggested Citation

  • Tao Tang & Haijun Qi & Qingfeng Lu & Hao Jiang, 2024. "Multithreaded Reproducible Banded Matrix-Vector Multiplication," Mathematics, MDPI, vol. 12(3), pages 1-12, January.
  • Handle: RePEc:gam:jmathe:v:12:y:2024:i:3:p:422-:d:1328019
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/12/3/422/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/12/3/422/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:12:y:2024:i:3:p:422-:d:1328019. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.