Unlock instant, AI-driven research and patent intelligence for your innovation.

Data processing method, processor, data processing device and storage medium

A data processing and processor technology, applied in the field of data processing, which can solve problems such as destroying atomicity

Active Publication Date: 2020-06-09
SHANGHAI CAMBRICON INFORMATION TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if other processor cores access the storage space during the operation, an erroneous result will be obtained, destroying the atomicity of this accumulation

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, processor, data processing device and storage medium
  • Data processing method, processor, data processing device and storage medium
  • Data processing method, processor, data processing device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0065] The terms "first", "second" and "third" in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps o...

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 relates to a data processing method, a processor, a data processing device and a storage medium. The method comprises: obtaining an operation instruction; according to the operation instruction, reading first sub-data from a first storage device, storing currently read first sub-data into a second storage device, and obtaining second sub-data according to the operation instruction; and performing logical exclusive-OR operation on the currently read first sub-data and the second sub-data to obtain a current operation result, storing the current operation result in the first storage device, and returning to continue to read the first sub-data from the first storage device until the operation corresponding to the operation instruction is completed. The data is read circularly for operation, the operation result of each cycle is continuously stored in the first storage device, exclusive access to the first storage device is realized, other processor cores are prevented from accessing the first storage device, and the atomicity of atomic operation is ensured.

Description

technical field [0001] The present application relates to the technical field of data processing, and in particular to a data processing method, processor, data processing device and storage medium. Background technique [0002] An atomic operation refers to an operation that will not be interrupted by the thread scheduling mechanism. Once this operation starts, it will run until the end without any thread switching in the middle (for example, the shared variable i performs accumulation, and multiple cores in the case of non-atomic operations At the same time, the result of i++ will be wrong). In a multi-core processor system, multiple processor cores share the same storage space, and the usual data transmission technology may not be able to guarantee atomicity, that is, multiple processor cores may access the same address at the same time. [0003] In the actual program, the operation result is stored in a storage space with a certain address range. Since the storage space...

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/38
CPCG06F9/3834
Inventor 不公告发明人
Owner SHANGHAI CAMBRICON INFORMATION TECH CO LTD