Device and method for executing vector inner product operation

A vector inner product and computing device technology, applied in the field of vector inner product computing devices, can solve problems such as limited inter-chip communication, insufficient cache, and inflexible vector length, to achieve flexible vector length, improve execution performance, and solve correlation problem effect

Active Publication Date: 2017-11-03
CAMBRICON TECH CO LTD
View PDF9 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The object of the present invention is to provide a vector inner product device and method to solve the problems existing in the prior art such as limited inter-chip communication, insufficient on-chip cache, and insufficient flexibility of supported vector lengths.

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 vector inner product operation
  • Device and method for executing vector inner product operation
  • Device and method for executing vector inner product operation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0034] According to an embodiment of the present invention, the vector inner product device further includes: an instruction cache unit, configured to store a vector inner product instruction to be executed. During the execution of the instruction, it is also cached in the instruction cache unit. After an instruction is executed, if the instruction is also the earliest instruction among the uncommitted instructions in the instruction cache unit, the instruction will be submitted. Once submitted , the operation performed by this command will not undo the changes to the device status. In one implementation, the instruction cache unit may be a reorder cache.

[0035] According to an embodiment of the present invention, the vector inner product device further includes: an instruction processing unit, configured to obtain a vector inner product instruction from the instruction cache unit, and provide the vector inner product instruction to the vector inner product instruction after...

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 and method for executing vector inner product operation, and aims at cooperating with a corresponding instruction set to execute vector inner product operation. The device comprises an instruction storage unit, a register unit and a vector inner product unit, wherein the storage unit is internally stored with vectors; the register unit is internally stored with addresses for vector storage; and the vector inner product unit is used for obtaining a vector address in the register unit according to an assorted instruction, obtaining a corresponding vector in the storage unit according to the vector address and carrying out vector inner product operation according to the obtained vector so as to obtain an operation result. According to the device and method, vector data participating in the calculation is temporarily stored on a scratch pad memory, so that the data with different widths can be supported more flexibly and effectively in the vector inner product operation process and then the execution performance of applications comprising a large number of vector inner products is enhanced.

Description

technical field [0001] The invention relates to a vector inner product operation device and method, which are used for efficiently and flexibly executing vector inner product according to a vector inner product instruction, and can well solve the problem that more and more algorithms in the current computer field include a large number of vector inner products. Background technique [0002] A vector inner product (dot product; scalar product, also known as a dot product) is a binary operation that takes two vectors over a real number R and returns a real-valued scalar. It is the standard inner product of Euclidean space. [0003] In the field of mathematical operations, the inner product of two vectors a = [a1, a2, ..., an] and b = [b1, b2, ..., bn] is defined as: [0004] a·b=a1b1+a2b2+...+anbn [0005] Using matrix multiplication and treating the (column) vectors as n×1 matrices, the dot product can also be written as: [0006] a·b=a^T*b [0007] Among them, a^T repres...

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): G06F17/16
CPCG06F17/16G06F9/30036G06N20/00G06F9/3001G06F15/8069G06F15/8076G06N3/08
Inventor 支天郭崎刘少礼陈天石陈云霁
Owner CAMBRICON TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products