EISW-206538 ze_command_queue_npu_ext: add queue-level external semaphore signal/wait (v1.2)#54
Open
leonardo-intel wants to merge 1 commit into
Open
Conversation
…ore signal/wait (v1.2) Adds zeCommandQueueSignalExternalSemaphoreExt and zeCommandQueueWaitExternalSemaphoreExt to ze_command_queue_npu_ext.h as NPU-private extension v1.2. These track the proposed core spec functions from GSD-12455 ([L0 Spec] Add support for inserting semaphores to L0 queues) which are still in Future status. When the spec finalizes and lands in core ze_api.h, these extension entries are expected to be deprecated in favour of the core variants — same pattern as the runtime-requirements interim extension that was superseded by the v1.16 core spec. Changes: - Bump ZE_COMMAND_QUEUE_NPU_EXT_VERSION_CURRENT to 1.2 - Add ze_pfnCommandQueueSignalExternalSemaphoreExt_t and ze_pfnCommandQueueWaitExternalSemaphoreExt_t typedefs - Append pfnSignalExternalSemaphoreExt and pfnWaitExternalSemaphoreExt to ze_command_queue_npu_dditable_ext_t (ABI-compatible: new slots at the end) - Document hSignalEvent / phWaitEvents as reserved (driver-side implementation rejects non-default values until the spec defines how events coordinate with queue-level fence ops) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4f599c6 to
fffc35c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
zeCommandQueueSignalExternalSemaphoreExtandzeCommandQueueWaitExternalSemaphoreExttoze_command_queue_npu_ext.has NPU-private extension v1.2. These track the proposed core spec functions from GSD-12455 (still inFuturestatus). Once that lands in coreze_api.h, these extension entries should be deprecated in favour of the core variants — same pattern as the runtime-requirements interim extension that was superseded by the v1.16 core spec.Changes
ZE_COMMAND_QUEUE_NPU_EXT_VERSION_CURRENTto1.2(addedZE_COMMAND_QUEUE_NPU_EXT_VERSION_1_2)ze_pfnCommandQueueSignalExternalSemaphoreExt_tandze_pfnCommandQueueWaitExternalSemaphoreExt_ttypedefspfnSignalExternalSemaphoreExtandpfnWaitExternalSemaphoreExttoze_command_queue_npu_dditable_ext_t(ABI-compatible: new slots at the end)hSignalEvent/phWaitEventsas reserved (driver-side rejects non-default values until the spec defines how events coordinate with queue-level fence ops)Companion driver PR
intel-innersource/drivers.vpu.windows.mcdm — branch
lopezleo/master/EISW-206538consumes these typedefs and dditable slots, and registers the driver-side implementations underZE_COMMAND_QUEUE_NPU_EXT_VERSION_1_2.Test plan
verify_external_semaphore_queue_signal_wait,verify_external_semaphore_queue_events_reserved) on the companion driver branch