On the Performance Prediction of BLAS-based Tensor Contractions

被引:11
|
作者
Peise, Elmar [1 ]
Fabregat-Traver, Diego [1 ]
Bientinesi, Paolo [1 ]
机构
[1] Rhein Westfal TH Aachen, AICES, D-52062 Aachen, Germany
关键词
SET;
D O I
10.1007/978-3-319-17248-4_10
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Tensor operations are surging as the computational building blocks for a variety of scientific simulations and the development of high-performance kernels for such operations is known to be a challenging task. While for operations on one-and two-dimensional tensors there exist standardized interfaces and highly-optimized libraries (BLAS), for higher dimensional tensors neither standards nor highly-tuned implementations exist yet. In this paper, we consider contractions between two tensors of arbitrary dimensionality and take on the challenge of generating high-performance implementations by resorting to sequences of BLAS kernels. The approach consists in breaking the contraction down into operations that only involve matrices or vectors. Since in general there are many alternative ways of decomposing a contraction, we are able to methodically derive a large family of algorithms. The main contribution of this paper is a systematic methodology to accurately identify the fastest algorithms in the bunch, without executing them. The goal is instead accomplished with the help of a set of cache-aware micro-benchmarks for the underlying BLAS kernels. The predictions we construct from such benchmarks allow us to reliably single out the best-performing algorithms in a tiny fraction of the time taken by the direct execution of the algorithms.
引用
收藏
页码:193 / 212
页数:20
相关论文
共 50 条
  • [21] Fast and Layout-Oblivious Tensor-Matrix Multiplication with BLAS
    Bassoy, Cem Savas
    COMPUTATIONAL SCIENCE, ICCS 2024, PT I, 2024, 14832 : 256 - 271
  • [22] The prediction of curvature of curves based on trifocal tensor
    Hu, ML
    Ruan, ZC
    Wei, S
    DATA MINING AND APPLICATIONS, 2001, 4556 : 133 - 138
  • [23] TENSOR OPERATIONS ON CHARACTERISTIC FUNCTIONS OF CO CONTRACTIONS
    BERCOVICI, H
    VOICULESCU, D
    ACTA SCIENTIARUM MATHEMATICARUM, 1977, 39 (3-4): : 205 - 231
  • [24] Fast Bilinear Algorithms for Symmetric Tensor Contractions
    Solomonik, Edgar
    Demmel, James
    COMPUTATIONAL METHODS IN APPLIED MATHEMATICS, 2021, 21 (01) : 211 - 231
  • [25] Tachyonic cosmology with cubic contractions of the Riemann tensor
    Marciu, Mihai
    EUROPEAN PHYSICAL JOURNAL C, 2022, 82 (11):
  • [26] Tachyonic cosmology with cubic contractions of the Riemann tensor
    Mihai Marciu
    The European Physical Journal C, 82
  • [27] BLAS on the trident processor: Implementation and performance evaluation
    Soliman, MI
    Sedukhin, SG
    COMPUTERS AND THEIR APPLICATIONS, 2003, : 359 - 364
  • [28] TpuGraphs: A Performance Prediction Dataset on Large Tensor Computational Graphs
    Phothilimthana, Phitchaya Mangpo
    Abu-El-Haija, Sami
    Cao, Kaidi
    Fatemi, Bahare
    Burrows, Mike
    Mendis, Charith
    Perozzi, Bryan
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [29] Observational constraints for cubic gravity theory based on third order contractions of the Riemann tensor
    Marciu, Mihai
    Ioan, Dana Maria
    Dragomir, Mihai
    EUROPEAN PHYSICAL JOURNAL C, 2024, 84 (02):
  • [30] Observational constraints for cubic gravity theory based on third order contractions of the Riemann tensor
    Mihai Marciu
    Dana Maria Ioan
    Mihai Dragomir
    The European Physical Journal C, 84