CreateSyncStreamForDevice property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtEp> this_ptr, Pointer<OrtMemoryDevice> memory_device, Pointer<Pointer<OrtSyncStreamImpl>> stream)>> CreateSyncStreamForDevice
getter/setter pair

\brief Create a synchronization stream for the given memory device for an OrtSession.

This is used to create a synchronization stream for the execution provider and is used to synchronize operations on the device during model execution. Any stream specific options should be read from the session options.

If nullptr OrtEpFactory::CreateSyncStreamForDevice will be used.

\paramin this_ptr The OrtEpFactory instance. \paramin memory_device The OrtMemoryDevice to create the synchronization stream for. \paramout stream The created OrtSyncStreamImpl instance. nullptr if the execution provider is not stream aware.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.23.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtEp> this_ptr,
      ffi.Pointer<OrtMemoryDevice> memory_device,
      ffi.Pointer<ffi.Pointer<OrtSyncStreamImpl>> stream,
    )
  >
>
CreateSyncStreamForDevice;