oneapi-src / oneapi-src/level-zero

zeCommandListAppendWaitOnEvents API issues

Open
#34 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
335
Forks
140
Avg merge
12h 32m
Merged PRs (30d)
5

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with zeCommandListAppendWaitOnEvents and zeCommandListAppendSignalEvent, then compare their documented behavior with OpenCL's clEnqueueMarkerWithWaitList reference. Review the empty wait-list and returned-event requirements in the Level Zero specification headers and loader; done when the requested API behavior is explicitly resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.