In addition - the OpenCL API returns an event that can be used. To achieve the same behavior in Level Zero, an additional API call is needed i.e.zeCommandListAppendSignalEvent which returns an event.
It would be useful to have the same API behavior as clEnqueueMarkerWithWaitList
The API for zeCommandListAppendWaitOnEvents is analogous to clEnqueuMarkerWithWaitList in OpenCL There are a couple of issues
1) There is no information on how the Level Zero API behaves when the wait list is empty. According to OpenCL i.e. https://www.khronos.org/registry/OpenCL//sdk/2.2/docs/man/html/clEnqueueMarkerWithWaitList.html the behavior is defined as "If event_wait_list is NULL, then this particular command waits until all previous enqueued commands to command_queue have completed."
In addition - the OpenCL API returns an event that can be used. To achieve the same behavior in Level Zero, an additional API call is needed i.e.zeCommandListAppendSignalEvent which returns an event. It would be useful to have the same API behavior as clEnqueueMarkerWithWaitList