The invention relates to the field of high-
performance computing and computing
power optimization, in particular to an acceleration method of
triangular matrix multiplication based on an atlas 800 platform, which comprises the following steps of: segmenting a result matrix into a plurality of task blocks, and presetting a balanced division strategy based on the plurality of task blocks; a
mask matrix is generated on the vector calculation unit, and the
mask matrix is stored in a global memory; reading the matrix and the
mask matrix from the global memory, and adopting a vector calculation unit to realize matrix triangle masking to obtain a triangle matrix A after triangle masking; and based on the
triangular matrix A after triangle masking, calling a cube calculation unit according to a preset equilibrium division strategy to complete
matrix multiplication of all task blocks, and obtaining a result matrix. According to the method,
triangular matrix multiplication is completed by adopting a mix method in which a vector calculation unit and a cube calculation unit are combined, the calculation efficiency of triangular
matrix multiplication on NPU is improved, the calculation power of Huawean atlas 800NPU can be fully exerted, triangular
matrix multiplication calculation is accelerated, and calculation power support is provided for the fields of
deep learning, scientific calculation and the like.