MLIR
22.0.0git
|
Public Member Functions | |
DynamicEventPool (L0RTContextWrapper *rtCtx) | |
DynamicEventPool (const DynamicEventPool &)=delete | |
DynamicEventPool & | operator= (const DynamicEventPool &)=delete |
DynamicEventPool (DynamicEventPool &&) noexcept=default | |
DynamicEventPool & | operator= (DynamicEventPool &&) noexcept=default |
~DynamicEventPool () | |
void | createNewPool (size_t numEvents) |
ze_event_handle_t | takeEvent () |
void | releaseEvent (ze_event_handle_t event) |
Public Attributes | |
std::vector< UniqueZeEventPool > | eventPools |
std::vector< UniqueZeEvent > | availableEvents |
std::unordered_map< ze_event_handle_t, UniqueZeEvent > | takenEvents |
size_t | maxEventsCount {32768} |
size_t | currentEventsLimit {0} |
size_t | currentEventsCnt {0} |
L0RTContextWrapper * | rtCtx |
Static Public Attributes | |
constexpr static size_t | numEventsPerPool {128} |
Definition at line 244 of file LevelZeroRuntimeWrappers.cpp.
|
inline |
Definition at line 259 of file LevelZeroRuntimeWrappers.cpp.
|
delete |
|
defaultnoexcept |
|
inline |
Definition at line 270 of file LevelZeroRuntimeWrappers.cpp.
|
inline |
Definition at line 274 of file LevelZeroRuntimeWrappers.cpp.
References L0RTContextWrapper::context, L0RTContextWrapper::device, and L0_SAFE_CALL.
|
delete |
|
defaultnoexcept |
|
inline |
Definition at line 320 of file LevelZeroRuntimeWrappers.cpp.
References L0_SAFE_CALL.
Referenced by mgpuEventDestroy(), and StreamWrapper::sync().
|
inline |
Definition at line 287 of file LevelZeroRuntimeWrappers.cpp.
References L0_SAFE_CALL.
Referenced by StreamWrapper::enqueueOp(), and mgpuEventCreate().
std::vector<UniqueZeEvent> DynamicEventPool::availableEvents |
Definition at line 248 of file LevelZeroRuntimeWrappers.cpp.
size_t DynamicEventPool::currentEventsCnt {0} |
Definition at line 256 of file LevelZeroRuntimeWrappers.cpp.
size_t DynamicEventPool::currentEventsLimit {0} |
Definition at line 255 of file LevelZeroRuntimeWrappers.cpp.
std::vector<UniqueZeEventPool> DynamicEventPool::eventPools |
Definition at line 247 of file LevelZeroRuntimeWrappers.cpp.
size_t DynamicEventPool::maxEventsCount {32768} |
Definition at line 254 of file LevelZeroRuntimeWrappers.cpp.
|
staticconstexpr |
Definition at line 245 of file LevelZeroRuntimeWrappers.cpp.
L0RTContextWrapper* DynamicEventPool::rtCtx |
Definition at line 257 of file LevelZeroRuntimeWrappers.cpp.
std::unordered_map<ze_event_handle_t, UniqueZeEvent> DynamicEventPool::takenEvents |
Definition at line 249 of file LevelZeroRuntimeWrappers.cpp.