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

Device and method for executing matrix addition/subtraction operation

A matrix operation and matrix technology, applied in the computer field, can solve the problems of limited inter-chip communication, large amount of code, and inflexible matrix scale.

Pending Publication Date: 2020-10-30
CAMBRICON TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, according to this method, the existing special-purpose matrix operation device is limited by the design of the register file, and cannot flexibly support matrix addition and subtraction operations of different lengths
[0006] In summary, the existing multi-core general-purpose processors on-chip, inter-chip interconnection general-purpose processors (single-core or multi-core), or inter-chip interconnection graphics processors cannot perform efficient matrix addition and subtraction operations, and these existing When dealing with matrix addition and subtraction operations, some technologies have problems such as large code volume, limited inter-chip communication, insufficient on-chip cache, and insufficient flexibility in the size of the supported 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
  • Device and method for executing matrix addition/subtraction operation
  • Device and method for executing matrix addition/subtraction operation
  • Device and method for executing matrix addition/subtraction operation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0047] According to an embodiment of the present disclosure, the matrix addition and subtraction operation device further includes: an instruction buffer unit, configured to store matrix operation instructions to be executed. Instructions are also cached in the instruction cache unit during execution, and when an instruction is executed, the instruction will be committed.

[0048] According to an embodiment of the present disclosure, the control unit in the device further includes: an instruction queue module, configured to sequentially store the decoded matrix operation instructions, and after obtaining the scalar data required by the matrix operation instructions, Send matrix operation instructions and scalar data to the dependency processing module.

[0049] According to an embodiment of the present disclosure, the control unit in the device further includes: a dependency processing unit, configured to determine whether there is a dependency relationship between the operati...

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 device for executing matrix addition and subtraction operation, and the device is characterized in that the device comprises: a storage unit which is used for storing matrix data related to a matrix operation instruction; the register unit that is used for storing scalar data related to the matrix operation instruction; the control unit that is used for decoding the matrixoperation instruction and controlling the operation process of the matrix operation instruction; the matrix operation unit that is used for carrying out matrix addition and subtraction operation on an input matrix according to the decoded matrix operation instruction, wherein the matrix operation unit is a customized hardware circuit. The invention further provides a method for executing matrix addition and subtraction.

Description

technical field [0001] The present disclosure relates to the field of computers, and in particular to a device and method for performing matrix addition and subtraction operations. Background technique [0002] In the current computer field, with the maturity of emerging technologies such as big data and machine learning, more and more tasks include various matrix addition and subtraction operations, especially the addition and subtraction of large matrices, which often become The bottleneck of algorithm speed and effect improvement. , [0003] In the prior art, a known solution for matrix addition and subtraction is to use a general-purpose processor, which executes general-purpose instructions through a general-purpose register file and general-purpose functional units to perform matrix addition and subtraction. However, one of the disadvantages of this method is that a single general-purpose processor is mostly used for scalar calculations, and the calculation performan...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/30G06F17/16
CPCG06F17/16G06F9/3001G06F9/30036G06N3/04
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