2020-03-06 18:09:57 +08:00
|
|
|
/*
|
2023-01-02 17:56:45 +08:00
|
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
2020-03-06 18:09:57 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2023-05-30 17:12:10 +08:00
|
|
|
#include "shared/source/helpers/timestamp_packet_constants.h"
|
2023-05-24 23:23:48 +08:00
|
|
|
#include "shared/source/helpers/timestamp_packet_container.h"
|
2023-01-19 20:57:43 +08:00
|
|
|
#include "shared/source/memory_manager/multi_graphics_allocation.h"
|
2020-09-15 15:33:12 +08:00
|
|
|
|
2020-07-29 17:45:54 +08:00
|
|
|
#include <level_zero/ze_api.h>
|
2020-03-06 18:09:57 +08:00
|
|
|
|
2023-01-19 20:57:43 +08:00
|
|
|
#include <atomic>
|
2022-05-22 02:53:47 +08:00
|
|
|
#include <bitset>
|
2023-01-19 20:57:43 +08:00
|
|
|
#include <chrono>
|
2021-12-04 03:46:19 +08:00
|
|
|
#include <limits>
|
2023-01-19 20:57:43 +08:00
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
2021-12-04 03:46:19 +08:00
|
|
|
|
2020-03-06 18:09:57 +08:00
|
|
|
struct _ze_event_handle_t {};
|
|
|
|
|
|
|
|
struct _ze_event_pool_handle_t {};
|
|
|
|
|
2022-12-20 12:30:24 +08:00
|
|
|
namespace NEO {
|
2023-01-19 20:57:43 +08:00
|
|
|
class CommandStreamReceiver;
|
|
|
|
class GraphicsAllocation;
|
|
|
|
class MultiGraphicsAllocation;
|
2022-12-20 12:30:24 +08:00
|
|
|
struct RootDeviceEnvironment;
|
2023-01-19 20:57:43 +08:00
|
|
|
} // namespace NEO
|
2022-12-20 12:30:24 +08:00
|
|
|
|
2020-03-06 18:09:57 +08:00
|
|
|
namespace L0 {
|
|
|
|
typedef uint64_t FlushStamp;
|
|
|
|
struct EventPool;
|
2020-07-09 20:21:33 +08:00
|
|
|
struct MetricStreamer;
|
2022-06-03 16:50:35 +08:00
|
|
|
struct ContextImp;
|
|
|
|
struct Context;
|
|
|
|
struct DriverHandle;
|
2022-10-27 19:40:44 +08:00
|
|
|
struct DriverHandleImp;
|
2022-06-03 16:50:35 +08:00
|
|
|
struct Device;
|
2023-02-22 07:17:05 +08:00
|
|
|
struct Kernel;
|
2020-03-06 18:09:57 +08:00
|
|
|
|
2023-01-17 00:53:05 +08:00
|
|
|
#pragma pack(1)
|
|
|
|
struct IpcEventPoolData {
|
|
|
|
uint64_t handle = 0;
|
|
|
|
size_t numEvents = 0;
|
|
|
|
uint32_t rootDeviceIndex = 0;
|
2023-01-18 20:06:03 +08:00
|
|
|
uint32_t maxEventPackets = 0;
|
2023-02-08 10:24:29 +08:00
|
|
|
uint32_t numDevices = 0;
|
2023-01-17 00:53:05 +08:00
|
|
|
bool isDeviceEventPoolAllocation = false;
|
|
|
|
bool isHostVisibleEventPoolAllocation = false;
|
2023-03-25 05:26:48 +08:00
|
|
|
bool isImplicitScalingCapable = false;
|
2023-01-17 00:53:05 +08:00
|
|
|
};
|
|
|
|
#pragma pack()
|
|
|
|
static_assert(sizeof(IpcEventPoolData) <= ZE_MAX_IPC_HANDLE_SIZE, "IpcEventPoolData is bigger than ZE_MAX_IPC_HANDLE_SIZE");
|
|
|
|
|
2021-04-15 02:13:17 +08:00
|
|
|
namespace EventPacketsCount {
|
2022-12-08 22:23:49 +08:00
|
|
|
inline constexpr uint32_t maxKernelSplit = 3;
|
2023-05-30 17:12:10 +08:00
|
|
|
inline constexpr uint32_t eventPackets = maxKernelSplit * NEO ::TimestampPacketConstants::preferredPacketCount;
|
2021-04-15 02:13:17 +08:00
|
|
|
} // namespace EventPacketsCount
|
|
|
|
|
2020-03-06 18:09:57 +08:00
|
|
|
struct Event : _ze_event_handle_t {
|
|
|
|
virtual ~Event() = default;
|
|
|
|
virtual ze_result_t destroy();
|
|
|
|
virtual ze_result_t hostSignal() = 0;
|
2020-07-29 17:45:54 +08:00
|
|
|
virtual ze_result_t hostSynchronize(uint64_t timeout) = 0;
|
2020-03-06 18:09:57 +08:00
|
|
|
virtual ze_result_t queryStatus() = 0;
|
|
|
|
virtual ze_result_t reset() = 0;
|
2020-07-29 20:25:20 +08:00
|
|
|
virtual ze_result_t queryKernelTimestamp(ze_kernel_timestamp_result_t *dstptr) = 0;
|
2023-01-17 01:12:02 +08:00
|
|
|
virtual ze_result_t queryTimestampsExp(Device *device, uint32_t *count, ze_kernel_timestamp_result_t *timestamps) = 0;
|
2020-04-09 03:44:14 +08:00
|
|
|
enum State : uint32_t {
|
2020-03-06 18:09:57 +08:00
|
|
|
STATE_SIGNALED = 0u,
|
2022-12-07 23:49:14 +08:00
|
|
|
HOST_CACHING_DISABLED_PERMANENT = std::numeric_limits<uint32_t>::max() - 2,
|
2022-11-22 23:12:44 +08:00
|
|
|
HOST_CACHING_DISABLED = std::numeric_limits<uint32_t>::max() - 1,
|
2021-12-04 03:46:19 +08:00
|
|
|
STATE_CLEARED = std::numeric_limits<uint32_t>::max(),
|
2020-03-06 18:09:57 +08:00
|
|
|
STATE_INITIAL = STATE_CLEARED
|
|
|
|
};
|
|
|
|
|
2021-05-18 19:31:17 +08:00
|
|
|
template <typename TagSizeT>
|
2020-03-06 18:09:57 +08:00
|
|
|
static Event *create(EventPool *eventPool, const ze_event_desc_t *desc, Device *device);
|
|
|
|
|
|
|
|
static Event *fromHandle(ze_event_handle_t handle) { return static_cast<Event *>(handle); }
|
|
|
|
|
|
|
|
inline ze_event_handle_t toHandle() { return this; }
|
|
|
|
|
2023-01-12 17:24:14 +08:00
|
|
|
MOCKABLE_VIRTUAL NEO::GraphicsAllocation &getAllocation(Device *device) const;
|
2020-03-06 18:09:57 +08:00
|
|
|
|
2023-01-12 17:24:14 +08:00
|
|
|
MOCKABLE_VIRTUAL uint64_t getGpuAddress(Device *device) const;
|
2022-10-27 19:40:44 +08:00
|
|
|
virtual uint32_t getPacketsInUse() const = 0;
|
2022-04-17 09:13:30 +08:00
|
|
|
virtual uint32_t getPacketsUsedInLastKernel() = 0;
|
2021-05-18 19:31:17 +08:00
|
|
|
virtual uint64_t getPacketAddress(Device *device) = 0;
|
2023-01-12 17:24:14 +08:00
|
|
|
MOCKABLE_VIRTUAL void resetPackets(bool resetAllPackets);
|
2022-10-28 06:14:39 +08:00
|
|
|
virtual void resetKernelCountAndPacketUsedCount() = 0;
|
2023-01-12 17:24:14 +08:00
|
|
|
void *getHostAddress() const { return hostAddress; }
|
2021-05-18 19:31:17 +08:00
|
|
|
virtual void setPacketsInUse(uint32_t value) = 0;
|
2021-04-15 02:13:17 +08:00
|
|
|
uint32_t getCurrKernelDataIndex() const { return kernelCount - 1; }
|
2023-01-12 17:24:14 +08:00
|
|
|
MOCKABLE_VIRTUAL void setGpuStartTimestamp();
|
|
|
|
MOCKABLE_VIRTUAL void setGpuEndTimestamp();
|
|
|
|
size_t getCompletionFieldOffset() const {
|
2023-01-12 02:16:20 +08:00
|
|
|
return this->isUsingContextEndOffset() ? this->getContextEndOffset() : 0;
|
|
|
|
}
|
2023-01-12 17:24:14 +08:00
|
|
|
uint64_t getCompletionFieldGpuAddress(Device *device) const {
|
2023-01-12 02:16:20 +08:00
|
|
|
return this->getGpuAddress(device) + getCompletionFieldOffset();
|
|
|
|
}
|
2023-01-19 20:57:43 +08:00
|
|
|
void *getCompletionFieldHostAddress() const;
|
2021-12-08 19:12:14 +08:00
|
|
|
size_t getContextStartOffset() const {
|
|
|
|
return contextStartOffset;
|
|
|
|
}
|
|
|
|
size_t getContextEndOffset() const {
|
|
|
|
return contextEndOffset;
|
|
|
|
}
|
|
|
|
size_t getGlobalStartOffset() const {
|
|
|
|
return globalStartOffset;
|
|
|
|
}
|
|
|
|
size_t getGlobalEndOffset() const {
|
|
|
|
return globalEndOffset;
|
|
|
|
}
|
|
|
|
size_t getSinglePacketSize() const {
|
|
|
|
return singlePacketSize;
|
|
|
|
}
|
|
|
|
size_t getTimestampSizeInDw() const {
|
|
|
|
return timestampSizeInDw;
|
|
|
|
}
|
|
|
|
void setEventTimestampFlag(bool timestampFlag) {
|
|
|
|
isTimestampEvent = timestampFlag;
|
|
|
|
}
|
2022-03-29 22:46:15 +08:00
|
|
|
bool isEventTimestampFlagSet() const {
|
|
|
|
return isTimestampEvent;
|
|
|
|
}
|
2022-04-05 03:07:08 +08:00
|
|
|
void setUsingContextEndOffset(bool usingContextEndOffset) {
|
|
|
|
this->usingContextEndOffset = usingContextEndOffset;
|
2022-03-29 22:46:15 +08:00
|
|
|
}
|
2022-04-05 03:07:08 +08:00
|
|
|
bool isUsingContextEndOffset() const {
|
|
|
|
return isTimestampEvent || usingContextEndOffset;
|
2022-03-29 22:46:15 +08:00
|
|
|
}
|
2022-09-30 01:12:22 +08:00
|
|
|
void setCsr(NEO::CommandStreamReceiver *csr) {
|
2023-04-27 22:11:10 +08:00
|
|
|
this->csrs[0] = csr;
|
|
|
|
}
|
|
|
|
void appendAdditionalCsr(NEO::CommandStreamReceiver *additonalCsr) {
|
|
|
|
for (const auto &csr : csrs) {
|
|
|
|
if (csr == additonalCsr) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
csrs.push_back(additonalCsr);
|
2022-09-30 01:12:22 +08:00
|
|
|
}
|
2021-12-08 19:12:14 +08:00
|
|
|
|
2023-01-19 20:57:43 +08:00
|
|
|
void increaseKernelCount();
|
2022-04-09 02:48:45 +08:00
|
|
|
uint32_t getKernelCount() const {
|
|
|
|
return kernelCount;
|
|
|
|
}
|
|
|
|
void zeroKernelCount() {
|
|
|
|
kernelCount = 0;
|
|
|
|
}
|
2022-05-22 02:53:47 +08:00
|
|
|
bool getL3FlushForCurrenKernel() {
|
|
|
|
return l3FlushAppliedOnKernel.test(kernelCount - 1);
|
|
|
|
}
|
|
|
|
void setL3FlushForCurrentKernel() {
|
|
|
|
l3FlushAppliedOnKernel.set(kernelCount - 1);
|
|
|
|
}
|
2022-04-09 02:48:45 +08:00
|
|
|
|
2022-12-07 23:49:14 +08:00
|
|
|
void resetCompletionStatus() {
|
|
|
|
if (this->isCompleted.load() != HOST_CACHING_DISABLED_PERMANENT) {
|
|
|
|
this->isCompleted.store(STATE_CLEARED);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void disableHostCaching(bool disableFromRegularList) {
|
|
|
|
this->isCompleted.store(disableFromRegularList ? HOST_CACHING_DISABLED_PERMANENT : HOST_CACHING_DISABLED);
|
2022-11-22 23:12:44 +08:00
|
|
|
}
|
|
|
|
|
2023-04-27 00:43:07 +08:00
|
|
|
void setIsCompleted();
|
2022-11-22 23:12:44 +08:00
|
|
|
|
|
|
|
bool isAlreadyCompleted() {
|
|
|
|
return this->isCompleted == STATE_SIGNALED;
|
2022-09-12 21:37:02 +08:00
|
|
|
}
|
|
|
|
|
2022-10-27 19:40:44 +08:00
|
|
|
uint32_t getMaxPacketsCount() const {
|
|
|
|
return maxPacketCount;
|
|
|
|
}
|
|
|
|
void setMaxKernelCount(uint32_t value) {
|
|
|
|
maxKernelCount = value;
|
|
|
|
}
|
|
|
|
uint32_t getMaxKernelCount() const {
|
|
|
|
return maxKernelCount;
|
|
|
|
}
|
2023-02-22 07:17:05 +08:00
|
|
|
void setKernelForPrintf(Kernel *inputKernelPtr) {
|
|
|
|
kernelWithPrintf = inputKernelPtr;
|
|
|
|
}
|
|
|
|
Kernel *getKernelForPrintf() {
|
|
|
|
return kernelWithPrintf;
|
|
|
|
}
|
2022-10-27 19:40:44 +08:00
|
|
|
|
2023-01-20 02:33:55 +08:00
|
|
|
bool isSignalScope() const {
|
|
|
|
return !!signalScope;
|
|
|
|
}
|
|
|
|
bool isSignalScope(ze_event_scope_flags_t flag) const {
|
|
|
|
return !!(signalScope & flag);
|
|
|
|
}
|
|
|
|
bool isWaitScope() const {
|
|
|
|
return !!waitScope;
|
|
|
|
}
|
|
|
|
void setMetricStreamer(MetricStreamer *metricStreamer) {
|
|
|
|
this->metricStreamer = metricStreamer;
|
|
|
|
}
|
2023-05-24 23:23:48 +08:00
|
|
|
void enableInOrderExecMode(const NEO::TimestampPacketContainer &inOrderSyncNodes);
|
2023-06-01 17:57:35 +08:00
|
|
|
bool isInOrderExecEvent() const { return inOrderExecEvent; }
|
|
|
|
const NEO::TimestampPacketContainer *getInOrderTimestampPacket() const { return inOrderTimestampPacket.get(); }
|
2023-04-26 19:48:10 +08:00
|
|
|
|
2023-01-20 02:33:55 +08:00
|
|
|
protected:
|
|
|
|
Event(EventPool *eventPool, int index, Device *device) : device(device), eventPool(eventPool), index(index) {}
|
|
|
|
|
2023-01-12 22:21:51 +08:00
|
|
|
uint64_t globalStartTS = 1;
|
|
|
|
uint64_t globalEndTS = 1;
|
|
|
|
uint64_t contextStartTS = 1;
|
|
|
|
uint64_t contextEndTS = 1;
|
2021-06-10 04:15:59 +08:00
|
|
|
|
2023-01-20 02:33:55 +08:00
|
|
|
std::chrono::microseconds gpuHangCheckPeriod{500'000};
|
2022-05-22 02:53:47 +08:00
|
|
|
std::bitset<EventPacketsCount::maxKernelSplit> l3FlushAppliedOnKernel;
|
|
|
|
|
2021-12-08 19:12:14 +08:00
|
|
|
size_t contextStartOffset = 0u;
|
|
|
|
size_t contextEndOffset = 0u;
|
|
|
|
size_t globalStartOffset = 0u;
|
|
|
|
size_t globalEndOffset = 0u;
|
|
|
|
size_t timestampSizeInDw = 0u;
|
|
|
|
size_t singlePacketSize = 0u;
|
2022-04-05 03:07:08 +08:00
|
|
|
size_t eventPoolOffset = 0u;
|
2022-04-09 02:48:45 +08:00
|
|
|
|
2022-09-20 17:32:33 +08:00
|
|
|
size_t cpuStartTimestamp = 0u;
|
|
|
|
size_t gpuStartTimestamp = 0u;
|
|
|
|
size_t gpuEndTimestamp = 0u;
|
|
|
|
|
2023-01-20 02:33:55 +08:00
|
|
|
// Metric streamer instance associated with the event.
|
|
|
|
MetricStreamer *metricStreamer = nullptr;
|
2023-04-27 22:11:10 +08:00
|
|
|
StackVec<NEO::CommandStreamReceiver *, 1> csrs;
|
2023-01-20 02:33:55 +08:00
|
|
|
void *hostAddress = nullptr;
|
|
|
|
Device *device = nullptr;
|
|
|
|
EventPool *eventPool = nullptr;
|
2023-02-22 07:17:05 +08:00
|
|
|
Kernel *kernelWithPrintf = nullptr;
|
2023-05-24 23:23:48 +08:00
|
|
|
std::unique_ptr<NEO::TimestampPacketContainer> inOrderTimestampPacket;
|
2023-01-20 02:33:55 +08:00
|
|
|
|
2022-10-27 19:40:44 +08:00
|
|
|
uint32_t maxKernelCount = 0;
|
2022-04-09 02:48:45 +08:00
|
|
|
uint32_t kernelCount = 1u;
|
2022-10-27 19:40:44 +08:00
|
|
|
uint32_t maxPacketCount = 0;
|
2022-10-27 19:40:44 +08:00
|
|
|
uint32_t totalEventSize = 0;
|
2022-04-09 02:48:45 +08:00
|
|
|
|
2023-01-20 02:33:55 +08:00
|
|
|
ze_event_scope_flags_t signalScope = 0u;
|
|
|
|
ze_event_scope_flags_t waitScope = 0u;
|
|
|
|
|
|
|
|
int index = 0;
|
|
|
|
|
2023-01-12 22:21:51 +08:00
|
|
|
std::atomic<State> isCompleted{STATE_INITIAL};
|
|
|
|
|
2021-06-10 04:15:59 +08:00
|
|
|
bool isTimestampEvent = false;
|
2022-04-05 03:07:08 +08:00
|
|
|
bool usingContextEndOffset = false;
|
2022-10-27 19:40:44 +08:00
|
|
|
bool signalAllEventPackets = false;
|
2023-01-17 20:40:06 +08:00
|
|
|
bool isFromIpcPool = false;
|
2023-05-05 17:14:00 +08:00
|
|
|
bool inOrderExecEvent = false;
|
2020-03-06 18:09:57 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct EventPool : _ze_event_pool_handle_t {
|
2023-01-17 01:12:02 +08:00
|
|
|
static EventPool *create(DriverHandle *driver, Context *context, uint32_t numDevices, ze_device_handle_t *deviceHandles, const ze_event_pool_desc_t *desc, ze_result_t &result);
|
2023-01-20 02:33:55 +08:00
|
|
|
static ze_result_t openEventPoolIpcHandle(const ze_ipc_event_pool_handle_t &ipcEventPoolHandle, ze_event_pool_handle_t *eventPoolHandle,
|
|
|
|
DriverHandleImp *driver, ContextImp *context, uint32_t numDevices, ze_device_handle_t *deviceHandles);
|
2023-01-17 01:12:02 +08:00
|
|
|
EventPool(const ze_event_pool_desc_t *desc) : EventPool(desc->count) {
|
|
|
|
eventPoolFlags = desc->flags;
|
|
|
|
}
|
|
|
|
virtual ~EventPool();
|
|
|
|
MOCKABLE_VIRTUAL ze_result_t destroy();
|
|
|
|
MOCKABLE_VIRTUAL ze_result_t getIpcHandle(ze_ipc_event_pool_handle_t *ipcHandle);
|
|
|
|
MOCKABLE_VIRTUAL ze_result_t closeIpcHandle();
|
|
|
|
MOCKABLE_VIRTUAL ze_result_t createEvent(const ze_event_desc_t *desc, ze_event_handle_t *eventHandle);
|
2020-03-06 18:09:57 +08:00
|
|
|
|
|
|
|
static EventPool *fromHandle(ze_event_pool_handle_t handle) {
|
|
|
|
return static_cast<EventPool *>(handle);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline ze_event_pool_handle_t toHandle() { return this; }
|
|
|
|
|
2023-01-17 01:12:02 +08:00
|
|
|
MOCKABLE_VIRTUAL NEO::MultiGraphicsAllocation &getAllocation() { return *eventPoolAllocations; }
|
2020-03-06 18:09:57 +08:00
|
|
|
|
2022-10-27 19:40:44 +08:00
|
|
|
uint32_t getEventSize() const { return eventSize; }
|
|
|
|
void setEventSize(uint32_t size) { eventSize = size; }
|
|
|
|
void setEventAlignment(uint32_t alignment) { eventAlignment = alignment; }
|
|
|
|
size_t getNumEvents() const { return numEvents; }
|
|
|
|
uint32_t getEventMaxPackets() const { return eventPackets; }
|
|
|
|
size_t getEventPoolSize() const { return eventPoolSize; }
|
2020-03-06 18:09:57 +08:00
|
|
|
|
2023-01-17 01:12:02 +08:00
|
|
|
bool isEventPoolTimestampFlagSet() const;
|
2021-06-10 04:15:59 +08:00
|
|
|
|
2023-01-17 01:12:02 +08:00
|
|
|
bool isEventPoolDeviceAllocationFlagSet() const {
|
2021-06-10 04:15:59 +08:00
|
|
|
if (!(eventPoolFlags & ZE_EVENT_POOL_FLAG_HOST_VISIBLE)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
2020-03-06 18:09:57 +08:00
|
|
|
|
2022-12-14 02:50:36 +08:00
|
|
|
uint32_t getMaxKernelCount() const {
|
|
|
|
return maxKernelCount;
|
|
|
|
}
|
|
|
|
|
2023-01-17 01:12:02 +08:00
|
|
|
ze_result_t initialize(DriverHandle *driver, Context *context, uint32_t numDevices, ze_device_handle_t *deviceHandles);
|
|
|
|
|
|
|
|
void initializeSizeParameters(uint32_t numDevices, ze_device_handle_t *deviceHandles, DriverHandleImp &driver, const NEO::RootDeviceEnvironment &rootDeviceEnvironment);
|
|
|
|
|
|
|
|
Device *getDevice() const { return devices[0]; }
|
|
|
|
|
2023-01-20 02:33:55 +08:00
|
|
|
bool getImportedIpcPool() const {
|
|
|
|
return isImportedIpcPool;
|
|
|
|
}
|
2022-10-27 19:40:44 +08:00
|
|
|
|
2023-03-25 05:26:48 +08:00
|
|
|
bool isImplicitScalingCapableFlagSet() const {
|
|
|
|
return isImplicitScalingCapable;
|
|
|
|
}
|
|
|
|
|
2022-10-27 19:40:44 +08:00
|
|
|
protected:
|
|
|
|
EventPool() = default;
|
|
|
|
EventPool(size_t numEvents) : numEvents(numEvents) {}
|
|
|
|
|
2023-01-20 02:33:55 +08:00
|
|
|
std::vector<Device *> devices;
|
|
|
|
|
|
|
|
std::unique_ptr<NEO::MultiGraphicsAllocation> eventPoolAllocations;
|
|
|
|
void *eventPoolPtr = nullptr;
|
|
|
|
ContextImp *context = nullptr;
|
|
|
|
|
2022-10-27 19:40:44 +08:00
|
|
|
size_t numEvents = 1;
|
|
|
|
size_t eventPoolSize = 0;
|
2023-01-20 02:33:55 +08:00
|
|
|
|
2022-10-27 19:40:44 +08:00
|
|
|
uint32_t eventAlignment = 0;
|
|
|
|
uint32_t eventSize = 0;
|
|
|
|
uint32_t eventPackets = 0;
|
2022-12-14 02:50:36 +08:00
|
|
|
uint32_t maxKernelCount = 0;
|
2023-01-20 02:33:55 +08:00
|
|
|
|
|
|
|
ze_event_pool_flags_t eventPoolFlags;
|
|
|
|
|
|
|
|
bool isDeviceEventPoolAllocation = false;
|
|
|
|
bool isHostVisibleEventPoolAllocation = false;
|
|
|
|
bool isImportedIpcPool = false;
|
|
|
|
bool isShareableEventMemory = false;
|
2023-03-25 05:26:48 +08:00
|
|
|
bool isImplicitScalingCapable = false;
|
2020-10-14 08:23:09 +08:00
|
|
|
};
|
|
|
|
|
2020-03-06 18:09:57 +08:00
|
|
|
} // namespace L0
|