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

Data writing method and device

A technology of data writing and kernel data, applied in the direction of program code conversion, code compilation, etc., can solve the problems of increasing instruction execution process jumps, occupying memory resources, occupying computing resources, etc., to achieve efficient and practical data writing control, avoid Effects of resource consumption and efficiency burden

Active Publication Date: 2019-12-13
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the flag parameter is still passed in when the released product is running, it not only occupies the already tight memory resources, but also needs to determine whether the flag is true every time each thread runs, and also increases the instruction execution process to a certain extent. Jump, occupying part of computing resources

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 writing method and device
  • Data writing method and device
  • Data writing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

[0064] Since OpenCL itself is a heterogeneous platform acceleration framework, it is often used in scenarios where higher performance is pursued. If the flag parameter is still passed in when the released product is running, it not only occupies the already tight memory resources, but also needs to determine whether the flag is true every time each thread runs, and also increases the instruction...

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 writing method and device which relates to the field of software development, and solves the problems of resource consumption and efficiency burden caused by unnecessary frequent border crossing inspection. The method comprises the steps of obtaining border crossing check information of a write-in operation, wherein the border crossing check information indicates whether border crossing check is carried out or not; acquiring target kernel data according to the border-crossing inspection information; and executing a file writing operation according to the targetkernel data. The technical scheme provided by the invention is suitable for memory write-in operation, and efficient and practical data write-in control is realized.

Description

technical field [0001] The present disclosure relates to the field of software development, in particular to a data writing method and device. Background technique [0002] OpenCL is a framework for writing programs for heterogeneous platforms. Heterogeneous platforms include: CPU, GPU, DSP, etc. It has been widely supported on mobile GPU platforms. Among them, the image (Image) data structure for image operations has no out-of-bounds self-check for writing data, and the process of writing neural network operators is more complicated, prone to memory write out-of-bounds errors, and difficult to troubleshoot. [0003] Since the Image object can obtain the size (size) of each dimension (dimension), an out-of-bounds flag (flag) parameter can be passed to the OpenCL kernel (kernel). Every time an Image is written, first check the value of the flag. If the flag is set to true, when writing data to the Image object, check whether the coordinates to be written exceed the boundary...

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): G06F8/41
CPCG06F8/41G06F8/43
Inventor 叶剑武何亮亮
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD