Event 接口
create_event 【required】
接口定义
C_Status (*create_event)(const C_Device device, C_Event* event)
接口说明
创建一个 event 对象,event 被框架内部用于同步不同 stream 之间的任务。硬件不支持异步执行时该接口需要空实现。
destroy_event 【required】
接口定义
C_Status (*destroy_event)(const C_Device device, C_Event event)
接口说明
销毁一个 event 对象。硬件不支持异步执行时该接口需要空实现。
record_event 【required】
接口定义
C_Status (*record_event)(const C_Device device, C_Stream stream, C_Event event)
接口说明
在 stream 上记录 event。硬件不支持异步执行时该接口需要空实现。