mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 12:11:31 +08:00
48 lines
912 B
C++
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
|