Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Sub-matrix operation device and method

A computing device and computing method technology, applied in the computer field, can solve the problems of limited inter-chip communication, insufficient on-chip cache, limited register file, etc., and achieve the effects of convenient use, improved execution performance, and flexible matrix length.

Active Publication Date: 2017-10-31
CAMBRICON TECH CO LTD
View PDF10 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, currently existing dedicated matrix operation devices are limited by register files and cannot flexibly support sub-matrix operations of different lengths
[0006] In summary, no matter the existing multi-core general-purpose processors on-chip, inter-chip interconnection general-purpose processors (single-core or multi-core), or inter-chip interconnections, graphics processors cannot perform efficient sub-matrix operations, and these existing When dealing with sub-matrix operations, there are problems such as a large amount of code, limited inter-chip communication, insufficient on-chip cache, and insufficient flexibility in the size of the supported sub-matrix.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Sub-matrix operation device and method
  • Sub-matrix operation device and method
  • Sub-matrix operation device and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention provides a sub-matrix operation device and method, including a storage unit, a register unit and a sub-matrix operation unit, wherein sub-matrix data is stored in the storage unit, sub-matrix information is stored in the register unit, and the sub-matrix operation unit is configured according to the sub-matrix operation instruction. The sub-matrix information is obtained in the register unit, and then the corresponding sub-matrix data is obtained in the storage unit according to the sub-matrix information, and then the sub-matrix operation is performed according to the obtained sub-matrix data to obtain a sub-matrix operation result. The invention temporarily stores the sub-matrix data participating in the calculation in the high-speed temporary storage memory, so that the data of different widths can be supported more flexibly and effectively during the sub-matrix operation process, and the execution performance of calculation tasks involving a larg...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a sub-matrix operation device and method. The device includes a storage unit, a register unit and a sub-matrix operation unit. Sub-matrix data are stored in the storage unit. Sub-matrix information is stored in the register unit. The sub-matrix operation unit acquires the sub-matrix information in the register unit according to a sub-matrix operation instruction, acquires the corresponding sub-matrix data in the storage unit according to the sub-matrix information, and then carries out sub-matrix operations according to the acquired sub-matrix data to obtain a sub-matrix operation result. According to the device and method, the sub-matrix data involved in computation is temporarily stored on a high-speed scratchpad memory, the device can be enabled to more flexibly and effectively support data with different widths in sub-matrix operation processes, and the execution performance of a computation task including a large number of sub-matrices is improved.

Description

technical field [0001] The invention belongs to the field of computers, and in particular relates to a sub-matrix operation device and method, which are used for obtaining sub-matrix data from matrix data according to sub-matrix operation instructions, and performing sub-matrix operations according to the sub-matrix data. Background technique [0002] At present, more and more algorithms in the computer field involve matrix operations, including artificial neural network algorithms and graphics rendering algorithms. At the same time, as an important part of matrix operations, submatrix operations appear more and more frequently in various computing tasks. Therefore, for those schemes oriented to solving matrix operation problems, the efficiency and difficulty of sub-matrix operation implementation must be considered at the same time. [0003] A known solution in the prior art to perform sub-matrix operations is to use a general-purpose processor, which executes general-purp...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/16
CPCG06F17/16
Inventor 刘少礼张潇陈云霁陈天石
Owner CAMBRICON TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products