Hardware resource acquisition method and device of AI video accelerator, equipment and medium
The invention discloses a hardware resource obtaining method and device of an AI video accelerator, equipment and a medium, and relates to the technical field of computers, and the method comprises the steps: determining the number of first hardware resource obtaining requests in a kernel mode in a...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a hardware resource obtaining method and device of an AI video accelerator, equipment and a medium, and relates to the technical field of computers, and the method comprises the steps: determining the number of first hardware resource obtaining requests in a kernel mode in a first queue, and judging whether the number of the first hardware resource obtaining requests is greater than a preset threshold value or not; if yes, determining a current target hardware resource acquisition request in the first hardware resource acquisition request, and monitoring whether a target hardware resource of which the working state is a preset idle state exists in the kernel at present or not; if yes, allocating the target hardware resource to a video processing thread corresponding to the current target hardware resource acquisition request; and updating the working state of the target hardware resource to a preset busy state, and skipping to the step of monitoring whether the target hardware resource |
---|