Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to increase event states beyond 2? #5

Open
CaoZhongZ opened this issue Jun 4, 2022 · 3 comments
Open

Is it possible to increase event states beyond 2? #5

CaoZhongZ opened this issue Jun 4, 2022 · 3 comments
Labels

Comments

@CaoZhongZ
Copy link

CaoZhongZ commented Jun 4, 2022

From document on event I read:

  • An event only has two states: not signaled and signaled.
  • An event can be appended into multiple command lists simultaneously.

Wouldn't it be more useful if the event has more than two states in this situation, like 32-bit states? With some API like:
zeCommandListAppendSignalEvent(hCommandList, hEvent, 42) and zeEventHostSynchronizeIfBeyond(hEvent, std::numeric_limits<uint64_t>::max(), 42)

Also, it could help upper layer software to track command queue progress, and almost eliminates the chance to reset an event, etc.

@jandres742
Copy link

current status: We are working on an experimental extension in the driver (https://github.com/intel/compute-runtime) where instead of waiting on a binary state of an event, we wait on a value. We are ironing out some details and then we will have in the driver, for gather feedback on the feature.

@jandres742
Copy link

Experimental extension available in
https://github.com/intel/compute-runtime/blob/master/level_zero/doc/experimental_extensions/WAIT_AND_WRITE_ON_MEMORY.md

@wdamon-intel
Copy link
Contributor

Moving to Spec Proposals to allow time for discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

3 participants