Compiler-level general matrix multiplication configuration optimization
AssigneeHuawei Technologies Co., Ltd.
InventorsHui Zang, Huaqing Zhang, Xiaolin Cheng
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Technologies Co., Ltd.
InventorsHui Zang, Huaqing Zhang, Xiaolin Cheng
Estimating the term…
A system and method is provided for optimizing general matrix multiplication (GEMM) on target hardware by splitting matrices to be multiplied into tiles and formulating a tiling configuration search problem for matrices to be multiplied that explores a configuration search space to identify an optimal tiling configuration that minimizes running time on the target hardware for multiplication of matrices A (m×k) and B (k×n) on the target hardware for respective configuration states as a function of matrix parameters m, k, and n, and numbers of respective nested loops for each dimension m, k, and n, respectively. The optimal tiling configuration for the target hardware is obtained by implementing a Greedy Best-First-Search (GBFS) algorithm or a Neighborhood Actor Advantage Critic (N-A2C) algorithm that optimizes the running time for multiplication of the matrices on the target hardware, and the target hardware is configured and computations are run accordingly.
A computer-implemented method of optimizing general matrix multiplication (GEMM) on target hardware, the method comprising:
A computing device for optimizing general matrix multiplication (GEMM) on target hardware, comprising:
A computing device for optimizing general matrix multiplication (GEMM) on target hardware, comprising:
Dependencies are inferred from the claim text.