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

Memory allocation optimization method and device, electronic equipment, medium and program product

An optimization method and memory allocation technology, applied in the computer field, can solve the problems of low memory layout efficiency, difficult to achieve global optimal or even local optimal, dependency, etc., and achieve the effect of adaptive memory allocation optimization.

Pending Publication Date: 2022-03-25
SHANGHAI BIREN TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, in calculations such as AI network deduction, the AI ​​network can be very large and of various types. Manually planning the memory layout for each AI network is very inefficient, and the final effect greatly depends on the individual ability of the engineer; It is difficult for the program to allocate memory to cover the variables of various AI networks, and it is difficult to achieve the global optimum or even the local optimum

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
  • Memory allocation optimization method and device, electronic equipment, medium and program product
  • Memory allocation optimization method and device, electronic equipment, medium and program product
  • Memory allocation optimization method and device, electronic equipment, medium and program product

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0032] figure 1 It is one of the schematic flowcharts of the memory allocation optimization method provided by the embodiment of the present invention. Such as figure 1 As shown, the method includes:

[0033] Step 101, perform preconfigured memory space actions for the data blocks of each time step of the target program; wherein, the operators of the target program correspond to one of the...

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

Embodiments of the invention provide a memory allocation optimization method and apparatus, an electronic device, a medium and a program product. The method comprises the steps of initializing a memory for each time step of a target program; a time step corresponds to an operator, and the number, the size and the survival time period of data blocks are known; traversing time steps; traversing the data blocks of the time steps; when the data block of the time step is traversed, executing a preset memory adjustment action by traversing a preset action set, if the preset memory adjustment action is successfully executed, re-initializing the memory for the subsequent time step, if the current time step is a preset state, updating the time step, recording the currently updated memory state, and calculating the total consumed time of the read-write task; and after the data block traversal of the current time step is completed, selecting the memory state with reduced total time consumption and minimum time consumption to update the current memory state, and obtaining the memory state of each time step of the target program after the traversal of all the time steps is completed. According to the embodiment of the invention, adaptive memory allocation optimization of different programs can be realized.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of computers, and in particular to a memory allocation optimization method, device, electronic equipment, media, and program product. Background technique [0002] Allocating and releasing memory for data is essential in computing processes such as AI network deduction. Since there are multiple levels of memory in the GPU or CPU, and each level of memory has different bandwidth, latency, and access limitations (the higher the limitation, the lower the probability of memory access conflicts), so the memory usage strategy when performing calculations such as AI network deduction Can have a huge impact on computing performance. [0003] In order to improve computing performance, an existing memory usage strategy is through natural data hit, that is, the memory requested by the user is unified in the main memory (lower level, larger capacity). After the CPU or GPU accesses, by leaving...

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/50
CPCG06F9/5016
Inventor 不公告发明人
Owner SHANGHAI BIREN TECH CO LTD