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

Data processing method and device for matrix multiplication

A matrix multiplication and matrix technology, which is applied in the field of data processing of matrix multiplication, can solve the problems such as inapplicability of instructions to matrix operation operations, power consumption, and low data processing efficiency.

Active Publication Date: 2021-01-05
CHENGDU HAIGUANG INTEGRATED CIRCUIT DESIGN CO LTD
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, when performing matrix operations, especially matrix multiplication operations, due to the characteristics of matrix multiplication, it is often necessary to multiply the corresponding elements of the matrix by reading the matrix data multiple times, and after the matrix data is read into the register, the register The data transmitted on all channels of the thread is the same, and there is a lot of redundancy in the data between threads, which will also cause additional power consumption
Existing data processing methods can realize the copying of data between threads by executing specific instructions, but the instructions used are not suitable for matrix operation operations, and the instructions for operating data between threads exist as separate instructions independent of operation instructions. Still less efficient for actual data processing

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
  • Data processing method and device for matrix multiplication
  • Data processing method and device for matrix multiplication
  • Data processing method and device for matrix multiplication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the objects, technical solutions, and advantages of the present disclosure more apparent, exemplary embodiments according to the present disclosure will be described in detail below with reference to the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited by the exemplary embodiments described here.

[0027] In this specification and the drawings, substantially the same or similar steps and elements are denoted by the same or similar reference numerals, and repeated descriptions of these steps and elements will be omitted. Meanwhile, in the description of the present disclosure, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance or ranking.

[0028] In thi...

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 data processing method and device for matrix multiplication, equipment and a storage medium. The data processing method comprises the steps of obtaining a matrix multiplication instruction and a data selection instruction; determining a first vector general register storing a first operation matrix and a second vector general register storing a second operation matrix based on the matrix multiplication instruction and the data selection instruction; determining target operation data in a second number of operation data of the second operation matrix based on the data selection instruction; respectively providing a first number of operation data of the first operation matrix to the first number of multipliers as a first multiplication factor, and providing the target operation data to the first number of multipliers as a second multiplication factor.

Description

technical field [0001] The present disclosure relates to the field of data processing, and more particularly, to a data processing method and device for matrix multiplication. Background technique [0002] A graphics processing unit (GPU) includes a large number of data processing units, and each data processing unit is a single instruction multiple data (SIMD) structure. By executing an instruction, multiple threads are simultaneously controlled to perform the same operation. In each SIMD structure, It has a dedicated set of vector general-purpose registers (VGPR) and a large number of parallel-executable arithmetic units, such as multiplication units. Because the SIMD structure has a high degree of parallelism, the SIMD structure is widely used in matrix operations. [0003] At present, when performing matrix operations, especially matrix multiplication operations, due to the characteristics of matrix multiplication, it is often necessary to multiply the corresponding ele...

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/16G06F7/523G06T1/20G06T1/60
CPCG06F17/16G06F7/523G06T1/60G06T1/20
Inventor 陈庆华芮袁庆
Owner CHENGDU HAIGUANG INTEGRATED CIRCUIT DESIGN 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