Patent ID: 11900499
Assignee: ADVANCED MICRO DEVICES, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 16:
17. An accelerated processing device comprising:
a compute unit; and
a command processor comprising:
a processor;
a memory interface configured to fetch commands from a primary command buffer; and
a memory interface configured to fetch commands and metadata from an indirect command buffer configured to asynchronously store commands, wherein the commands include one or more commands for execution on the compute unit,
wherein the processor is configured to:
execute commands in the primary buffer;
in response to an indirection command in the primary command buffer pointing to the indirect command buffer, beginning execution of the indirect command buffer;
in response to the indirect command buffer including an iterative flag indicating that iteration should occur, executing commands in the indirect command buffer in an iterative manner, the executing including:
obtain an iteration number and predication data from the metadata for the indirect command buffer;
for each iteration indicated by the iteration number, perform commands in the indirect command buffer as specified by the predication data; and
end processing of the commands in the indirect command buffer and return execution to the primary command buffer in response to processing a number of iterations equal to the iteration number.