The present application relates to a micro-matrix operation instruction level
parallel optimization method based on a heterogeneous many-core processor
system, and belongs to the technical field of
electronic information, and comprises the following steps: step 1: a linear
address mapping architecture based on particle priority; a multi-dimensional
tensor space in a physical problem is mapped to a one-dimensional linear
physical address space of a GPU; step 2: a register direct loading
mechanism based on explicit definition of a local array is constructed; in combination with a continuous address
layout, a fixed-size local array is explicitly defined in a kernel, and a direct
data path from a global memory to a register is constructed by using a
register allocation mechanism of a
compiler; and step 3: a register level instruction static
reconstruction method based on an orthogonal calculation flow; an explicit code reconstruction strategy is adopted to convert micro-
tensor operation into an
instruction sequence optimal for hardware. Through a coherent optimization path of "linear
address mapping-direct register loading-instruction static reconstruction", the present application realizes full-link
performance improvement from memory access to calculation.