Asynchronous input dependency resolution mechanism
AssigneeIntel Corporation
InventorsMichal Mrozek, Vinod Tipparaju
Life of this patent
Estimating the term…
Abstract
Described herein is a graphics processor configured to perform asynchronous input dependency resolution among a group of interdependent workloads. The graphics processor can dynamically resolve input dependencies among the workloads according to a dependency relationship defined for the workloads. Dependency resolution be performed via a deferred submission mode which resolves input dependencies prior to thread dispatch to the processing resources or via immediate submission mode which resolves input dependencies at the processing resources.
Claims19
A graphics processor comprising:
- a processing resource configured to execute a thread associated with a kernel program, the processing resource including first circuitry configured to perform dependency resolution operations associated with an immediate submission mode;
- a thread dispatcher to perform a thread dispatch operation in response to a thread dispatch instruction, the thread dispatch instruction to cause dispatch of the thread associated with the kernel program to the processing resource, wherein the thread dispatcher includes second circuitry configured to perform dependency resolution operations associated with a deferred submission mode;
- and
- third circuitry to configure the processing resource and the thread dispatcher to enable the immediate submission mode or the deferred submission mode.
The graphics processor as in claim 1, wherein the thread dispatch instruction includes or is associated with dependency data to enable the dependency resolution operations associated with the immediate submission mode or the deferred submission mode. The graphics processor as in claim 6, wherein the dependency data includes a virtual address, a wait value, and a compare mode.
The graphics processor as in claim 7, wherein to perform the dependency resolution operations associated with the deferred submission mode or the dependency resolution operations associated with immediate submission mode, the first circuitry or the second circuitry is configured to:
- read a data value from the virtual address specified by the dependency data;
- and
- compare the data value read from the virtual address with the wait value according to the compare mode.
A method comprising:
- on a graphics processor including a processing resource and a thread dispatcher:
- receiving a thread dispatch instruction at the thread dispatcher that indicates a dependency, wherein the thread dispatch instruction is to cause dispatch of a thread associated with a kernel program to the processing resource;
- determining a configured thread submission mode to use when dependencies are indicated by the thread dispatch instruction, wherein the configured thread submission mode is an immediate submission mode or a deferred submission mode;
- in response to determining that the immediate submission mode is enabled, dispatching the thread associated with the kernel program to the processing resource and synchronizing execution of the kernel program at the processing resource with resolution of the dependency;
- and
- in response to determining that the deferred submission mode is enabled, synchronizing the dispatch of the thread associated with the kernel program with the resolution of the dependency.
A system comprising:
- a memory device;
- a graphics processor coupled with the memory device, the graphics processor comprising:
- a processing resource configured to execute a thread associated with a kernel program, the processing resource including first circuitry configured to perform dependency resolution operations associated with an immediate submission mode;
- a thread dispatcher to perform a thread dispatch operation in response to a thread dispatch instruction, the thread dispatch instruction to cause dispatch of the thread associated with the kernel program to the processing resource, wherein the thread dispatcher includes second circuitry configured to perform dependency resolution operations associated with a deferred submission mode;
- and
- third circuitry to configure the processing resource and the thread dispatcher to enable the immediate submission mode or the deferred submission mode, wherein the third circuitry is configured to enable runtime selection between the immediate submission mode and the deferred submission mode.
Dependencies are inferred from the claim text.