ONNX Runtime
Loading...
Searching...
No Matches
OrtSyncNotificationImpl Struct Reference

Struct that an EP implements for Stream Notifications. More...

#include <onnxruntime_ep_c_api.h>

Public Member Functions

OrtStatusActivate (OrtSyncNotificationImpl *this_ptr)
 Called by ORT to activate the notification.
 
OrtStatusWaitOnDevice (OrtSyncNotificationImpl *this_ptr, OrtSyncStream *consumer_stream)
 Wait for a device to device operation to complete.
 
OrtStatusWaitOnHost (OrtSyncNotificationImpl *this_ptr)
 Wait for a device to host operation to complete.
 

Public Attributes

uint32_t ort_version_supported
 Must be initialized to ORT_API_VERSION.
 
void(* Release )(OrtSyncNotificationImpl *this_ptr)
 Release the OrtSyncNotificationImpl instance.
 

Detailed Description

Struct that an EP implements for Stream Notifications.

Since
Version 1.23.

Member Function Documentation

◆ Activate()

OrtStatus * OrtSyncNotificationImpl::Activate ( OrtSyncNotificationImpl this_ptr)

Called by ORT to activate the notification.

Parameters
[in]this_ptrPointer to the OrtSyncNotificationImpl instance.
Since
Version 1.23.

◆ WaitOnDevice()

OrtStatus * OrtSyncNotificationImpl::WaitOnDevice ( OrtSyncNotificationImpl this_ptr,
OrtSyncStream consumer_stream 
)

Wait for a device to device operation to complete.

Parameters
[in]this_ptrPointer to the OrtSyncNotificationImpl instance.
[in]consumer_streamThe OrtSyncStream instance that will wait on this notification to be activated.
Since
Version 1.23.

◆ WaitOnHost()

OrtStatus * OrtSyncNotificationImpl::WaitOnHost ( OrtSyncNotificationImpl this_ptr)

Wait for a device to host operation to complete.

Parameters
[in]this_ptrPointer to the OrtSyncNotificationImpl instance.
Since
Version 1.23.

Member Data Documentation

◆ ort_version_supported

uint32_t OrtSyncNotificationImpl::ort_version_supported

Must be initialized to ORT_API_VERSION.

◆ Release

void( * OrtSyncNotificationImpl::Release) (OrtSyncNotificationImpl *this_ptr)

Release the OrtSyncNotificationImpl instance.

This is called by ORT when the OrtSyncNotificationImpl instance is no longer needed. The implementation should release any resources held by the instance.

Parameters
[in]this_ptrPointer to the OrtSyncNotificationImpl instance.
Since
Version 1.23.