Skip to content

Commit f50c458

Browse files
authored
Clarify the definition of prerequisites to commands (#923)
* Clarify the definition of prerequisites to commands - Reword the first source of prerequisites so the wording is symmetrical with respect to the others (i.e. the first/second/third ...). - Broaden the first source of prerequisites to cover all implicit dependencies and provide an exhaustive list of how they arise: either because of barriers or because of ordering in in-order command-queues. Signed-off-by: Kevin Petit <kevin.petit@arm.com> Change-Id: Ic464066261fe13756347bafb4878cd6ffb5a8427 * Update api/opencl_architecture.asciidoc --------- Signed-off-by: Kevin Petit <kevin.petit@arm.com>
1 parent f37a868 commit f50c458

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

api/opencl_architecture.asciidoc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,12 @@ A command submitted to a device will not launch until prerequisites that
198198
constrain the order of commands have been resolved.
199199
These prerequisites have three sources:
200200

201-
* They may arise from commands submitted to a command-queue that constrain
202-
the order in which commands are launched.
203-
For example, commands that follow a command-queue barrier will not
204-
launch until all commands prior to the barrier are complete.
201+
* The first source of prerequisites is implicit dependencies between commands
202+
enqueued to the same command-queue which arise as follows:
203+
** Commands enqueued after a command-queue barrier have the preceding barrier command
204+
as a prerequisite.
205+
** Commands enqueued in an in-order command-queue have the command enqueued
206+
before them as a prerequisite.
205207
* The second source of prerequisites is dependencies between commands
206208
expressed through events.
207209
A command may include an optional list of events.

0 commit comments

Comments
 (0)