Method and apparatus for controlling hardware accelerator
AssigneeMobilint Inc.
InventorJisung Kim
Life of this patent
Estimating the term…
Abstract
Disclosed are a method and apparatus for controlling a hardware accelerator. The method includes setting a delay time related to task performance of a specific hardware accelerator, switching to a sleep state during the set delay time from a request time point when making a request, to a central processing unit (CPU), for requesting the specific hardware accelerator to accelerate a task, polling the state of the specific hardware accelerator to the CPU by switching from the sleep state to an operating state after the delay time, not polling a state of the specific hardware accelerator to the CPU during the delay time when switching to the sleep state, and receiving result information corresponding to the polling from the CPU in response to the polling.
Claims8
A hardware accelerator controlling method, the method comprising:
- setting a delay time related to task performance of a specific hardware accelerator;
- when making a request, to a central processing unit (CPU), for requesting the specific hardware accelerator to accelerate a task, switching to a sleep state during the set delay time from a request time point;
- when switching to the sleep state, not polling a state of the specific hardware accelerator to the CPU during the delay time;
- polling the state of the specific hardware accelerator to the CPU by switching from the sleep state to an operating state after the delay time;
- and
- receiving result information corresponding to the polling from the CPU in response to the polling,
- wherein the setting of the delay time includes:
- receiving a setting initialization request of the specific hardware accelerator from a system job using the specific hardware accelerator,
- wherein, when the setting initialization request of the specific hardware accelerator is used to request an automatic setting of the delay time, the setting of the delay time further includes:
- making a request, to the CPU, requesting the specific hardware accelerator to accelerate a task for measuring the delay time;
- and
- after a specific period, polling the state of the specific hardware accelerator to the CPU and receiving result information for measurement in response to the polling,
- wherein the delay time associated with the task performance of the specific hardware accelerator is determined by using the received result information for measurement.
A hardware accelerator controlling apparatus, the apparatus comprising:
- at least one processor;
- and
- a memory coupled to the at least one processor and configured to store executable instructions that, when executed by the at least one processor, instruct the at least one processor to:
- set, by a delay time setting unit, a delay time related to task performance of a specific hardware accelerator;
- switch, by a sleep state switching unit, to a sleep state during the set delay time from a request time point when making a request, to a central processing unit (CPU), for requesting the specific hardware accelerator to accelerate a task;
- not to poll, by a polling unit, a state of the specific hardware accelerator to the CPU during the delay time when switching to the sleep state, and to poll the state of the specific hardware accelerator to the CPU by switching from the sleep state to an operating state after the delay time;
- and
- receive, by a result information receiving unit, result information corresponding to the polling from the CPU in response to the polling,
- wherein the delay time setting unit is executed by the at least one processor to:
- receive a setting initialization request of the specific hardware accelerator from a system job using the specific hardware accelerator;
- when the setting initialization request of the specific hardware accelerator is used to request an automatic setting of the delay time, the delay time setting unit is executed by the at least one processor to:
- make a request, to the CPU, requesting the specific hardware accelerator to accelerate a task for measuring the delay time;
- and
- after a specific period, poll the state of the specific hardware accelerator to the CPU and receive result information for measurement in response to the polling,
- wherein the delay time associated with the task performance of the specific hardware accelerator is determined by using the received result information for measurement.
Dependencies are inferred from the claim text.