General register dynamic allocation method and device, computer equipment and storage medium

The invention relates to a general register dynamic allocation method and device, computer equipment and a storage medium. The method comprises the following steps: if a machine instruction program meets a register redivision condition in the execution process, determining the actual use number of g...

Full description

Saved in:
Bibliographic Details
Main Authors DONG BINGYUAN, CHANG ZHULIN, DONG YOUCHEN
Format Patent
LanguageChinese
English
Published 07.04.2023
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention relates to a general register dynamic allocation method and device, computer equipment and a storage medium. The method comprises the following steps: if a machine instruction program meets a register redivision condition in the execution process, determining the actual use number of general registers in the execution process of the machine instruction program; if the register overflow instruction is used in the execution process of the machine instruction program, adjusting the maximum distributable number of the general registers, so that the register overflow instruction is not used in the execution process of the machine instruction program; and resetting the size of the working group in the compiler according to the actual use number of the general registers and the adjusted maximum distributable number of the general registers. By adopting the method, the problem of contradiction between the number of the starting threads of the GPU and the resources of the general register can be solved,
Bibliography:Application Number: CN202211705663