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

Shared memory type coprocessor-oriented heap memory management method and device

A coprocessor and shared memory technology, applied in the computer field, can solve the problems that the coprocessor does not have dynamic memory management capabilities, cannot run the operating system, and cannot meet the needs of the coprocessor side to use dynamic memory, etc. The effect of the ability to allocate and free memory

Active Publication Date: 2022-03-15
NAT UNIV OF DEFENSE TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the existing shared memory coprocessor cannot run the operating system, does not have the ability to convert virtual and real addresses, and can only recognize physical addresses
Therefore, the coprocessor itself does not have dynamic memory management capabilities, and cannot meet the demand for using dynamic memory on the coprocessor side.

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
  • Shared memory type coprocessor-oriented heap memory management method and device
  • Shared memory type coprocessor-oriented heap memory management method and device
  • Shared memory type coprocessor-oriented heap memory management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] 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.

[0051] The shared memory coprocessor-oriented heap memory management method provided by the present application can be applied in the following application environments. The shared memory coprocessor is connected to the CPU through a high-speed bus in the chip, and can share memory with the CPU. The present invention executes a heap memory management method for the shared memory coprocessor through the terminal. , apply for a large continuous memory space in advance, and transfer the physical address of the space to the coprocessor-side program. On the coprocessor side, t...

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 shared memory type coprocessor-oriented heap memory management method and device. The method comprises the steps that before a co-processing end program is executed, a large continuous heap memory space is applied through a first interface function, a virtual address of the applied heap memory space is converted into a physical address, the physical address is transmitted to the co-processing end program, and the applied heap memory space is organized into an available linked list and an allocated linked list; when a coprocessor end program applies for memory use, searching for available memory allocation of a first block size from an available linked list head through a second interface function, and adding a newly allocated memory into a linked list tail of the allocated linked list; in the program execution process of the coprocessor end, releasing the stack memory space of the coprocessor end through a third interface function, and adding the newly released memory into the available linked list; after the coprocessor end program is executed, the coprocessor heap memory space is cleaned according to the virtual address through the fourth interface function.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a heap memory management method and device for shared memory coprocessors. Background technique [0002] Heterogeneous computing has been continuously developed in the field of high-performance computing due to its high performance and high energy efficiency, and more and more co-processors have emerged, such as GPU (Graphics Processing Unit, Graphics Processing Unit), FPGA (Field-programmable Gate Array, Field Programmable Logic Gate Array) and so on. Usually, the coprocessor is connected to the host CPU (Central Processing Unit, central processing unit) in the form of PCIe (Peripheral Component Interconnect Express, fast peripheral component interconnection) peripherals, and has its own independent storage unit, which cannot be directly connected to the CPU. Shared memory is a separate memory coprocessor. The separate-memory coprocessor needs to explicitly move da...

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/50G06F15/167
CPCG06F9/5016G06F9/5022G06F15/167
Inventor 张昂廖湘科崔英博杨灿群黄春唐滔彭林夏泽宇郭逸飞
Owner NAT UNIV OF DEFENSE TECH
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