MLIR 22.0.0git
StreamWrapper Struct Reference

Public Member Functions

 StreamWrapper (DynamicEventPool &dynEventPool)
 ~StreamWrapper ()
ze_event_handle_t * getLastImplicitEventPtr ()
void sync (ze_event_handle_t explicitEvent=nullptr)
template<typename Func>
void enqueueOp (Func &&op)

Public Attributes

std::deque< ze_event_handle_t > implicitEventStack
DynamicEventPooldynEventPool

Detailed Description

Definition at line 341 of file LevelZeroRuntimeWrappers.cpp.

Constructor & Destructor Documentation

◆ StreamWrapper()

StreamWrapper::StreamWrapper ( DynamicEventPool & dynEventPool)
inline

Definition at line 346 of file LevelZeroRuntimeWrappers.cpp.

References dynEventPool.

◆ ~StreamWrapper()

StreamWrapper::~StreamWrapper ( )
inline

Definition at line 347 of file LevelZeroRuntimeWrappers.cpp.

References sync().

Member Function Documentation

◆ enqueueOp()

template<typename Func>
void StreamWrapper::enqueueOp ( Func && op)
inline

◆ getLastImplicitEventPtr()

ze_event_handle_t * StreamWrapper::getLastImplicitEventPtr ( )
inline

Definition at line 349 of file LevelZeroRuntimeWrappers.cpp.

References implicitEventStack.

Referenced by enqueueOp(), and sync().

◆ sync()

void StreamWrapper::sync ( ze_event_handle_t explicitEvent = nullptr)
inline

Member Data Documentation

◆ dynEventPool

DynamicEventPool& StreamWrapper::dynEventPool

Definition at line 344 of file LevelZeroRuntimeWrappers.cpp.

Referenced by enqueueOp(), StreamWrapper(), and sync().

◆ implicitEventStack

std::deque<ze_event_handle_t> StreamWrapper::implicitEventStack

Definition at line 343 of file LevelZeroRuntimeWrappers.cpp.

Referenced by enqueueOp(), getLastImplicitEventPtr(), and sync().


The documentation for this struct was generated from the following file: