跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 性能

arXiv:2207.02070 (cs)
[提交于 2022年7月6日]

标题:FLOPs as a Discriminant for Dense Linear Algebra Algorithms

作者:Francisco López, Lars Karlsson, Paolo Bientinesi
查看论文《FLOPs as a Discriminant for Dense Linear Algebra Algorithms》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Expressions that involve matrices and vectors, known as linear algebra expressions, are commonly evaluated through a sequence of invocations to highly optimised kernels provided in libraries such as BLAS and LAPACK. A sequence of kernels represents an algorithm, and in general, because of associativity, algebraic identities, and multiple kernels, one expression can be evaluated via many different algorithms. These algorithms are all mathematically equivalent (i.e., in exact arithmetic, they all compute the same result), but often differ noticeably in terms of execution time. When faced with a decision, high-level languages, libraries, and tools such as Julia, Armadillo, and Linnea choose by selecting the algorithm that minimises the FLOP count. In this paper, we test the validity of the FLOP count as a discriminant for dense linear algebra algorithms, analysing "anomalies": problem instances for which the fastest algorithm does not perform the least number of FLOPs. To do so, we focused on relatively simple expressions and analysed when and why anomalies occurred. We found that anomalies exist and tend to cluster into large contiguous regions. For one expression anomalies were rare, whereas for the other they were abundant. We conclude that FLOPs is not a sufficiently dependable discriminant even when building algorithms with highly optimised kernels. Plus, most of the anomalies remained as such even after filtering out the inter-kernel cache effects. We conjecture that combining FLOP counts with kernel performance models will significantly improve our ability to choose optimal algorithms.
评论: 10 pages, 11 figures, 2 tables. Accepted in the 51st International Conference on Parallel Processing (ICPP'22)
主题: 性能 (cs.PF); 数学软件 (cs.MS)
引用方式: arXiv:2207.02070 [cs.PF]
  (或者 arXiv:2207.02070v1 [cs.PF] 对于此版本)
  https://doi.org/10.48550/arXiv.2207.02070
期刊参考: Francisco L\'opez, Lars Karlsson, and Paolo Bientinesi. 2022. FLOPs as a Discriminant for Dense Linear Algebra Algorithms. In 51st International Conference on Parallel Processing (ICPP'22), August 29-September 1, 2022, Bordeaux, France
相关 DOI: https://doi.org/10.1145/3545008.3545072

提交历史

来自:Francisco López
[v1] 2022年7月6日 星期三 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PF
< 上一篇   |   下一篇 >
最新 | 近期 | 2022-07
切换浏览方式为:
cs
cs.MS

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站