CreateSyncStreamForDevice property

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

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

This is used to create a synchronization stream for the memory device that can be used for operations outside of a session.

\paramin this_ptr The OrtEpFactory instance. \paramin memory_device The OrtMemoryDevice to create the synchronization stream for. \paramin stream_options Options for stream creation. May be nullptr. \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<OrtEpFactory> this_ptr,
      ffi.Pointer<OrtMemoryDevice> memory_device,
      ffi.Pointer<OrtKeyValuePairs> stream_options,
      ffi.Pointer<ffi.Pointer<OrtSyncStreamImpl>> stream,
    )
  >
>
CreateSyncStreamForDevice;