MCPcopy Create free account
hub / github.com/XpuOS/xsched / EventPool

Method EventPool

platforms/levelzero/hal/src/pool.cpp:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#define POOL_SIZE 16384
6
7EventPool::EventPool(ze_context_handle_t ctx): kContext(ctx)
8{
9 ze_event_pool_desc_t event_pool_desc = {
10 .stype = ZE_STRUCTURE_TYPE_EVENT_POOL_DESC,
11 .pNext = nullptr,
12 .flags = ZE_EVENT_POOL_FLAG_HOST_VISIBLE,
13 .count = POOL_SIZE,
14 };
15 ZE_ASSERT(Driver::EventPoolCreate(kContext, &event_pool_desc, 0, nullptr, &event_pool_));
16}
17
18EventPool::~EventPool()
19{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected