SignalSemaphore property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtExternalResourceImporter> importer, Pointer<OrtExternalSemaphoreHandle> semaphore_handle, Pointer<OrtSyncStream> stream, Uint64 value)>> SignalSemaphore
getter/setter pair

\brief Signal an external semaphore from the EP's stream.

Inserts a signal operation into the EP's stream that sets the semaphore to the specified value when reached. This is used to notify external GPU work (e.g., D3D12 timeline fence) that ORT inference is complete.

\paramin importer The OrtExternalResourceImporter instance. \paramin semaphore_handle The imported external semaphore. \paramin stream The OrtSyncStream to signal from. \paramin value The fence/semaphore value to signal.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.24.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtExternalResourceImporter> importer,
      ffi.Pointer<OrtExternalSemaphoreHandle> semaphore_handle,
      ffi.Pointer<OrtSyncStream> stream,
      ffi.Uint64 value,
    )
  >
>
SignalSemaphore;