Files
compute-runtime/level_zero/experimental/source/graph/graph.h
Chodor, Jaroslaw f35bdeb2fe feature: Adding Record and Replay API entrypoints
Related-To: NEO-15373

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-07-01 14:43:13 +02:00

48 lines
912 B
C++

/*
* Copyright (C) 2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "level_zero/driver_experimental/zex_graph.h"
struct _ze_graph_handle_t {
};
struct _ze_executable_graph_handle_t {
};
namespace L0 {
struct Context;
struct Graph : _ze_graph_handle_t {
Graph(L0::Context *ctx, bool preallocated) : ctx(ctx), preallocated(preallocated) {
}
static Graph *fromHandle(ze_graph_handle_t handle) {
return static_cast<Graph *>(handle);
}
bool wasPreallocated() const {
return preallocated;
}
protected:
L0::Context *ctx = nullptr;
bool preallocated = false;
};
struct ExecutableGraph : _ze_executable_graph_handle_t {
ExecutableGraph(Graph *src) {
}
static ExecutableGraph *fromHandle(ze_executable_graph_handle_t handle) {
return static_cast<ExecutableGraph *>(handle);
}
};
} // namespace L0