Patent ID: 11934481
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 12:
13. A matrix multiplication blocking method, comprising:
first dividing a first matrix into blocks in a unit of a sub-block whose size is X*L;
second dividing a second matrix into blocks in a unit of a sub-block whose size is L*Y;
inputting row x in the X row vectors of the any sub-block of the first matrix and column y in the Y column vectors of the corresponding sub-block of the second matrix into an operation unit in a row x and a column y in operation units of X rows and Y columns in parallel in a same clock cycle, so as to perform matrix multiplication operation between sub-blocks of the first matrix and sub-blocks of the second matrix, wherein x=(1,2,3, . . . X), y=(1,2,3, . . . Y) wherein:
if either the first or the second dividing cannot be done exactly by an integer value, filling at least one matrix value with the number 0.