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

Device and method for executing vector comparison operation

A technology for comparing operations and executing vectors, applied in machine execution devices, digital value comparisons, complex mathematical operations, etc., can solve problems such as inability to efficiently handle large-scale vector comparison operations, and achieve the effect of convenient use of instructions

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

AI Technical Summary

Problems solved by technology

[0005] In summary, the existing general-purpose processors and graphics processors cannot efficiently handle large-scale vector comparison operations.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0058] According to an embodiment of the present invention, the vector comparison operation device further includes: an instruction buffer unit configured to store vector comparison operation instructions to be executed. The original instruction of vector comparison is also cached in the instruction cache unit during execution, and when an instruction is executed, the instruction will be committed.

[0059] figure 2 A schematic diagram of the format of the vector comparison operation instruction in the present invention is shown, such as figure 2 As shown, the vector comparison operation instruction includes an operation code and a plurality of operation domains, wherein the operation code is used to indicate which vector comparison operation to perform, such as comparison operations such as greater than or equal to, greater than, equal to, not equal to, less than, and less than or equal to; The operation field is used to store scalar data related to vector comparison opera...

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 discloses a device and a method for executing vector comparison operation. The device comprises a storage device, a register unit, a control unit and a vector comparison unit, wherein the storage unit is used for storing vector data relevant to a vector comparison operation instruction; the register unit is used for storing scalar data relevant to the vector comparison operation instruction; the control unit is used for decoding the vector comparison operation instruction and controlling the operation process of the vector comparison operation instruction; and the vector comparison unit is used for performing vector comparison operation on two pieces of to-be-compared input vector data according to the decoded vector comparison operation instruction, wherein the vector comparison unit is a custom hardware circuit. Through the device and the method for executing vector comparison operation, a complete process of the simple vector comparison operation instruction is realized through the custom hardware circuit, that is, vector comparison operation can be realized through the simple vector comparison instruction.

Description

technical field [0001] The invention relates to the field of computer instruction operations, in particular to a device and method for performing vector comparison operations. Background technique [0002] Vector comparison, that is, for two vectors with the same length, the corresponding elements are compared, and the obtained comparison results form a new output vector. In the field of deep learning, there is a need to perform size comparison operations on two vectors. In the restricted Boltzmann machine of the artificial neural network, there is such a step that requires sampling a vector composed of a group of neurons, that is, in the vector Each neuron is compared with a random number. If the value of the neuron is greater than the vector, it takes 1, otherwise it takes 0. Another example is to convert a group of 32-bit single-precision floating-point numbers into 16-bit half-precision floating-point numbers. If you choose the random carry method, you need to compare t...

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): G06F7/02G06F17/16
CPCG06F7/02G06F17/16G06F9/30036G06F9/30021G06F9/3016G06F15/7839G06N3/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