feature: dump graph visualisation

Related-To: NEO-15377
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
This commit is contained in:
Naklicki, Mateusz
2025-08-11 13:24:01 +00:00
committed by Compute-Runtime-Automation
parent 0bb8591e79
commit c36f6cadb0
8 changed files with 890 additions and 27 deletions

View File

@@ -196,7 +196,21 @@ ze_result_t ZE_APICALL zeGraphIsEmptyExp(ze_graph_handle_t hGraph) {
}
ze_result_t ZE_APICALL zeGraphDumpContentsExp(ze_graph_handle_t hGraph, const char *filePath, void *pNext) {
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
if (nullptr != pNext) {
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
}
auto graph = L0::Graph::fromHandle(hGraph);
if (nullptr == graph) {
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
}
if (nullptr == filePath) {
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
}
L0::GraphDotExporter exporter{};
return exporter.exportToFile(*graph, filePath);
}
} // namespace L0