oneapi-src / level-zero

oneAPI Level Zero Specification Headers and Loader
https://spec.oneapi.com/versions/latest/elements/l0/source/index.html
MIT License
211 stars 90 forks source link

[question] How to know if there are pending commands in a command list/queue #144

Open jjfumero opened 4 months ago

jjfumero commented 4 months ago

Is there any way to know if a particular command list has pending commands to execute before executing or synchronizing?

What I am looking for, is an API call that returns boolean if there is anything pending in a command list before invoking the next two functions.

zeCommandQueueExecuteCommandLists(commandQueueId, ... )

zeCommandQueueSynchronize(comanndQueueId)

Is there anything like that?