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...
Saved in:
Main Authors | , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
07.04.2023
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
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 |