![]() |
ONNX Runtime
|
Struct that an EP implements for Stream Notifications. More...
#include <onnxruntime_ep_c_api.h>
Public Member Functions | |
| OrtStatus * | Activate (OrtSyncNotificationImpl *this_ptr) |
| Called by ORT to activate the notification. | |
| OrtStatus * | WaitOnDevice (OrtSyncNotificationImpl *this_ptr, OrtSyncStream *consumer_stream) |
| Wait for a device to device operation to complete. | |
| OrtStatus * | WaitOnHost (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. | |
Struct that an EP implements for Stream Notifications.
| OrtStatus * OrtSyncNotificationImpl::Activate | ( | OrtSyncNotificationImpl * | this_ptr | ) |
Called by ORT to activate the notification.
| [in] | this_ptr | Pointer to the OrtSyncNotificationImpl instance. |
| OrtStatus * OrtSyncNotificationImpl::WaitOnDevice | ( | OrtSyncNotificationImpl * | this_ptr, |
| OrtSyncStream * | consumer_stream | ||
| ) |
Wait for a device to device operation to complete.
| [in] | this_ptr | Pointer to the OrtSyncNotificationImpl instance. |
| [in] | consumer_stream | The OrtSyncStream instance that will wait on this notification to be activated. |
| OrtStatus * OrtSyncNotificationImpl::WaitOnHost | ( | OrtSyncNotificationImpl * | this_ptr | ) |
Wait for a device to host operation to complete.
| [in] | this_ptr | Pointer to the OrtSyncNotificationImpl instance. |
| uint32_t OrtSyncNotificationImpl::ort_version_supported |
Must be initialized to ORT_API_VERSION.
| 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.
| [in] | this_ptr | Pointer to the OrtSyncNotificationImpl instance. |