OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
Rename and move mlir runtime (#34180)
Artemy Skrebkov610bd4b02a4f
diff --git a/src/plugins/intel_npu/src/CMakeLists.txt b/src/plugins/intel_npu/src/CMakeLists.txtindex 29aebb0bac6..f8e6e648589 100644--- a/src/plugins/intel_npu/src/CMakeLists.txt+++ b/src/plugins/intel_npu/src/CMakeLists.txt@@ -13,6 +13,7 @@ add_subdirectory(ops)if (ENABLE_NPU_PLUGIN_ENGINE)add_subdirectory(common)+ add_subdirectory(vm)add_subdirectory(compiler_adapter)add_subdirectory(backend)add_subdirectory(plugin)diff --git a/src/plugins/intel_npu/src/al/CMakeLists.txt b/src/plugins/intel_npu/src/al/CMakeLists.txtindex 8fda6c45325..304e6534c91 100644--- a/src/plugins/intel_npu/src/al/CMakeLists.txt+++ b/src/plugins/intel_npu/src/al/CMakeLists.txt@@ -7,12 +7,6 @@ set(TARGET_NAME openvino_npu_al)file(GLOB_RECURSE SOURCES *.cpp *.hpp *.h)source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SOURCES})-if(NOT ENABLE_NPU_DEBUG_CAPS)- list(REMOVE_ITEM SOURCES- ${CMAKE_CURRENT_SOURCE_DIR}/include/intel_npu/npu_mlir_runtime.hpp- )-endif()-add_library(${TARGET_NAME} STATIC ${SOURCES})add_library(openvino::npu_al ALIAS ${TARGET_NAME})set_target_properties(${TARGET_NAME} PROPERTIES EXPORT_NAME npu_al)diff --git a/src/plugins/intel_npu/src/compiler_adapter/CMakeLists.txt b/src/plugins/intel_npu/src/compiler_adapter/CMakeLists.txtindex 2dfe3cf1fb6..8f7205ee4a9 100644--- a/src/plugins/intel_npu/src/compiler_adapter/CMakeLists.txt+++ b/src/plugins/intel_npu/src/compiler_adapter/CMakeLists.txt@@ -27,7 +27,9 @@ target_link_libraries(${TARGET_NAME}openvino_npu_commonopenvino::npu_alopenvino::xml_util+ openvino::npu_vm_runtime_api)+## targets install#diff --git a/src/plugins/intel_npu/src/compiler_adapter/include/dynamic_graph.hpp b/src/plugins/intel_npu/src/compiler_adapter/include/dynamic_graph.hppindex 08ae828fb1c..b9ee4c89d8b 100644--- a/src/plugins/intel_npu/src/compiler_adapter/include/dynamic_graph.hpp+++ b/src/plugins/intel_npu/src/compiler_adapter/include/dynamic_graph.hpp@@ -9,7 +9,7 @@#include "intel_npu/common/idynamic_graph.hpp"#include "intel_npu/network_metadata.hpp"#include "intel_npu/utils/zero/zero_init.hpp"-#include "npu_mlir_runtime_api.hpp"+#include "npu_vm_runtime_api.hpp"#include "openvino/runtime/so_ptr.hpp"namespace intel_npu {@@ -180,7 +180,6 @@ private:// In the case of the import path, the blob is released after graph initialization so it can not be any longer// exportedbool _blobIsReleased = false;- bool _blobAllocatedByPlugin = false;uint32_t _uniqueId = 0;uint32_t _lastSubmittedId = 0;diff --git a/src/plugins/intel_npu/src/compiler_adapter/include/npu_mlir_runtime_api.hpp b/src/plugins/intel_npu/src/compiler_adapter/include/npu_vm_runtime_api.hppsimilarity index 62%rename from src/plugins/intel_npu/src/compiler_adapter/include/npu_mlir_runtime_api.hpprename to src/plugins/intel_npu/src/compiler_adapter/include/npu_vm_runtime_api.hppindex 1747798164a..5edd1d5bd0f 100644--- a/src/plugins/intel_npu/src/compiler_adapter/include/npu_mlir_runtime_api.hpp+++ b/src/plugins/intel_npu/src/compiler_adapter/include/npu_vm_runtime_api.hpp@@ -5,10 +5,14 @@#pragma once#include <memory>+#include <string_view>-#include "intel_npu/npu_mlir_runtime.hpp"+#include "intel_npu/runtime/npu_vm_runtime.hpp"#include "openvino/core/except.hpp"+// TODO: to be removed as soon as we are ready to use NPU VM Runtime API+#include "intel_npu/npu_mlir_runtime.hpp"+namespace intel_npu {// clang-format off@@ -29,20 +33,34 @@ namespace intel_npu {#define nmr_weak_symbols_list() \nmr_symbol_statement(npuMLIRRuntimeCreateExecutionContext) \nmr_symbol_statement(npuMLIRRuntimeDestroyExecutionContext) \- nmr_symbol_statement(npuMLIRRuntimeUpdateMutableCommandList)+ nmr_symbol_statement(npuMLIRRuntimeUpdateMutableCommandList) \+ nmr_symbol_statement(npuVMRuntimeGetAPIVersion) \+ nmr_symbol_statement(npuVMRuntimeCreate) \+ nmr_symbol_statement(npuVMRuntimeDestroy) \+ nmr_symbol_statement(npuVMRuntimeGetMetadata) \+ nmr_symbol_statement(npuVMRuntimeExecute) \+ nmr_symbol_statement(npuVMRuntimePredictOutputShape) \+ nmr_symbol_statement(npuVMRuntimeCreateMemRef) \+ nmr_symbol_statement(npuVMRuntimeDestroyMemRef) \+ nmr_symbol_statement(npuVMRuntimeSetMemRef) \+ nmr_symbol_statement(npuVMRuntimeParseMemRef) \+ nmr_symbol_statement(npuVMRuntimeCreateExecutionContext) \+ nmr_symbol_statement(npuVMRuntimeDestroyExecutionContext) \+ nmr_symbol_statement(npuVMRuntimeUpdateMutableCommandList)+// clang-format on-class NPUMLIRRuntimeApi {+class NPUVMRuntimeApi {public:- NPUMLIRRuntimeApi();- NPUMLIRRuntimeApi(const NPUMLIRRuntimeApi& other) = delete;- NPUMLIRRuntimeApi(NPUMLIRRuntimeApi&& other) = delete;- void operator=(const NPUMLIRRuntimeApi&) = delete;- void operator=(NPUMLIRRuntimeApi&&) = delete;+ NPUVMRuntimeApi(std::string_view libName = "npu_mlir_runtime");+ NPUVMRuntimeApi(const NPUVMRuntimeApi& other) = delete;+ NPUVMRuntimeApi(NPUVMRuntimeApi&& other) = delete;+ void operator=(const NPUVMRuntimeApi&) = delete;+ void operator=(NPUVMRuntimeApi&&) = delete;- ~NPUMLIRRuntimeApi() = default;+ ~NPUVMRuntimeApi() = default;- static const std::shared_ptr<NPUMLIRRuntimeApi>& getInstance();+ static const std::shared_ptr<NPUVMRuntimeApi>& getInstance();#define nmr_symbol_statement(symbol) decltype(&::symbol) symbol;nmr_symbols_list();@@ -56,7 +74,7 @@ private:#define nmr_symbol_statement(symbol) \template <typename... Args> \inline typename std::invoke_result<decltype(&::symbol), Args...>::type wrapped_##symbol(Args... args) { \- const auto& ptr = NPUMLIRRuntimeApi::getInstance(); \+ const auto& ptr = NPUVMRuntimeApi::getInstance(); \if (ptr->symbol == nullptr) { \OPENVINO_THROW("Unsupported symbol " #symbol); \} \diff --git a/src/plugins/intel_npu/src/compiler_adapter/src/dynamic_graph.cpp b/src/plugins/intel_npu/src/compiler_adapter/src/dynamic_graph.cppindex 0fd0b684481..a8dd25a8116 100644--- a/src/plugins/intel_npu/src/compiler_adapter/src/dynamic_graph.cpp+++ b/src/plugins/intel_npu/src/compiler_adapter/src/dynamic_graph.cpp@@ -409,7 +409,6 @@ DynamicGraph::DynamicGraph(const std::shared_ptr<ZeroInitStructsHolder>& zeroIniconst FilteredConfig& config): _zeroInitStruct(zeroInitStruct),_blob(std::move(blob)),- _blobAllocatedByPlugin(blobAllocatedByPlugin),_logger("DynamicGraph", config.get<LOG_LEVEL>()) {_logger.info("Create DynamicGraph");if (!config.get<CREATE_EXECUTOR>() || config.get<DEFER_WEIGHTS_LOAD>()) {diff --git a/src/plugins/intel_npu/src/compiler_adapter/src/npu_mlir_runtime_api.cpp b/src/plugins/intel_npu/src/compiler_adapter/src/npu_vm_runtime_api.cppsimilarity index 81%rename from src/plugins/intel_npu/src/compiler_adapter/src/npu_mlir_runtime_api.cpprename to src/plugins/intel_npu/src/compiler_adapter/src/npu_vm_runtime_api.cppindex 6edda898362..16191d09818 100644--- a/src/plugins/intel_npu/src/compiler_adapter/src/npu_mlir_runtime_api.cpp+++ b/src/plugins/intel_npu/src/compiler_adapter/src/npu_vm_runtime_api.cpp@@ -2,14 +2,15 @@// SPDX-License-Identifier: Apache-2.0//-#include "npu_mlir_runtime_api.hpp"+#include "npu_vm_runtime_api.hpp"#include "openvino/util/file_util.hpp"#include "openvino/util/shared_object.hpp"namespace intel_npu {-NPUMLIRRuntimeApi::NPUMLIRRuntimeApi() {- const std::string baseName = "npu_mlir_runtime";++NPUVMRuntimeApi::NPUVMRuntimeApi(std::string_view libName) {+ const std::string baseName = libName.empty() ? "npu_mlir_runtime" : std::string(libName);try {auto libPath = ov::util::make_plugin_library_name(ov::util::get_ov_lib_path(), baseName + OV_BUILD_POSTFIX);this->lib = ov::util::load_shared_object(libPath);@@ -41,8 +42,8 @@ NPUMLIRRuntimeApi::NPUMLIRRuntimeApi() {#undef nmr_symbol_statement}-const std::shared_ptr<NPUMLIRRuntimeApi>& NPUMLIRRuntimeApi::getInstance() {- static std::shared_ptr<NPUMLIRRuntimeApi> instance = std::make_shared<NPUMLIRRuntimeApi>();+const std::shared_ptr<NPUVMRuntimeApi>& NPUVMRuntimeApi::getInstance() {+ static std::shared_ptr<NPUVMRuntimeApi> instance = std::make_shared<NPUVMRuntimeApi>();return instance;}diff --git a/src/plugins/intel_npu/src/vm/CMakeLists.txt b/src/plugins/intel_npu/src/vm/CMakeLists.txtnew file mode 100644index 00000000000..339c85a8bd8--- /dev/null+++ b/src/plugins/intel_npu/src/vm/CMakeLists.txt@@ -0,0 +1,6 @@+#+# Copyright (C) 2026 Intel Corporation+# SPDX-License-Identifier: Apache-2.0+#++add_subdirectory(runtime)diff --git a/src/plugins/intel_npu/src/vm/runtime/CMakeLists.txt b/src/plugins/intel_npu/src/vm/runtime/CMakeLists.txtnew file mode 100644index 00000000000..44393bc50fa--- /dev/null+++ b/src/plugins/intel_npu/src/vm/runtime/CMakeLists.txt@@ -0,0 +1,21 @@+#+# Copyright (C) 2026 Intel Corporation+# SPDX-License-Identifier: Apache-2.0+#++set(TARGET_NAME npu_vm_runtime_api)++add_library(${TARGET_NAME} INTERFACE)+add_library(openvino::npu_vm_runtime_api ALIAS ${TARGET_NAME})++target_include_directories(${TARGET_NAME} INTERFACE+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>+ $<INSTALL_INTERFACE:include>+)++ov_add_clang_format_target(${TARGET_NAME}_clang FOR_TARGETS ${TARGET_NAME})++ov_developer_package_export_targets(TARGET openvino::npu_vm_runtime_api+ INSTALL_INCLUDE_DIRECTORIES+ ${CMAKE_CURRENT_SOURCE_DIR}/include/)+ov_install_static_lib(npu_vm_runtime_api ${NPU_PLUGIN_COMPONENT})diff --git a/src/plugins/intel_npu/src/vm/runtime/include/intel_npu/runtime/npu_vm_runtime.hpp b/src/plugins/intel_npu/src/vm/runtime/include/intel_npu/runtime/npu_vm_runtime.hppnew file mode 100644index 00000000000..bc4e410e64b--- /dev/null+++ b/src/plugins/intel_npu/src/vm/runtime/include/intel_npu/runtime/npu_vm_runtime.hpp@@ -0,0 +1,248 @@+// Copyright (C) 2018-2026 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#ifndef NPU_VM_RUNTIME_H+#define NPU_VM_RUNTIME_H++#if defined(__cplusplus)+# pragma once+#endif++#include "ze_api.h"+#include "ze_graph_ext.h"++#if defined(__cplusplus)+# include <cstdint>+# include <cstdlib>+#else+# include <stdint.h>+# include <stdlib.h>+#endif++#if defined(__cplusplus)+extern "C" {+#endif++///////////////////////////////////////////////////////////////////////////////+#ifndef NPU_VM_RUNTIME_APICALL+# if defined(_WIN32)+/// @brief Calling convention for all API functions+# define NPU_VM_RUNTIME_APICALL __cdecl+# else+# define NPU_VM_RUNTIME_APICALL+# endif // defined(_WIN32)+#endif // NPU_VM_RUNTIME_APICALL++///////////////////////////////////////////////////////////////////////////////+#ifndef NPU_VM_RUNTIME_APIEXPORT+# if defined(_WIN32)+/// @brief Windows-specific dllexport storage-class attribute+# define NPU_VM_RUNTIME_APIEXPORT __declspec(dllexport)+# else+# define NPU_VM_RUNTIME_APIEXPORT+# endif // defined(_WIN32)+#endif // NPU_VM_RUNTIME_APIEXPORT++///////////////////////////////////////////////////////////////////////////////+#ifndef NPU_VM_RUNTIME_MAKE_VERSION+/// @brief Generates generic API versions+# define NPU_VM_RUNTIME_MAKE_VERSION(_major, _minor) ((_major << 16) | (_minor & 0x0000ffff))+#endif // NPU_VM_RUNTIME_MAKE_VERSION++///////////////////////////////////////////////////////////////////////////////+#ifndef NPU_VM_RUNTIME_MAJOR_VERSION+/// @brief Extracts API major version+# define NPU_VM_RUNTIME_MAJOR_VERSION(_ver) (_ver >> 16)+#endif // NPU_VM_RUNTIME_MAJOR_VERSION++///////////////////////////////////////////////////////////////////////////////+#ifndef NPU_VM_RUNTIME_MINOR_VERSION+/// @brief Extracts API minor version+# define NPU_VM_RUNTIME_MINOR_VERSION(_ver) (_ver & 0x0000ffff)+#endif // NPU_VM_RUNTIME_MINOR_VERSION++///////////////////////////////////////////////////////////////////////////////+/// @brief Supported versions+///+/// @details+/// - VM runtime versions contain major and minor attributes, use+/// ::NPU_VM_RUNTIME_MAJOR_VERSION and ::NPU_VM_RUNTIME_MINOR_VERSION+typedef enum _npu_vm_runtime_version_t {+ NPU_VM_RUNTIME_VERSION_1_0 = ZE_MAKE_VERSION(1, 0), ///< version 1.0+ NPU_VM_RUNTIME_VERSION_1_1 = ZE_MAKE_VERSION(1, 1), ///< version 1.1+ NPU_VM_RUNTIME_VERSION_CURRENT = NPU_VM_RUNTIME_VERSION_1_1, ///< latest known version+ NPU_VM_RUNTIME_VERSION_FORCE_UINT32 = 0x7fffffff,+} npu_vm_runtime_version_t;++///////////////////////////////////////////////////////////////////////////////+/// @brief NPU VM runtime handle+typedef struct _npu_vm_runtime_handle_t* npu_vm_runtime_handle_t;++//////////////////////////////////////////////////////////////////////////////+/// @brief NPU VM runtime MemRef handle+typedef struct _npu_vm_runtime_mem_ref_handle_t* npu_vm_runtime_mem_ref_handle_t;++//////////////////////////////////////////////////////////////////////////////+/// @brief NPU VM runtime execution context handle+typedef struct _npu_vm_runtime_execution_context_handle_t* npu_vm_runtime_execution_context_handle_t;++///////////////////////////////////////////////////////////////////////////////+/// @brief Defined Return/Error codes+typedef enum _npu_vm_runtime_result_t {+ NPU_VM_RUNTIME_RESULT_SUCCESS = 0,+ NPU_VM_RUNTIME_RESULT_ERROR_INVALID_NULL_POINTER = 0x80000001,+ NPU_VM_RUNTIME_RESULT_ERROR_UNSUPPORTED_DIM_COUNT = 0x80000002,+ NPU_VM_RUNTIME_RESULT_ERROR_UNSUPPORTED_VERSION = 0x80000003,+ NPU_VM_RUNTIME_RESULT_ERROR_UNKNOWN = 0x8ffffffe,+ NPU_VM_RUNTIME_RESULT_FORCE_UINT32 = 0x8fffffff,+} npu_vm_runtime_result_t;++///////////////////////////////////////////////////////////////////////////////+/// @brief Blob descriptor+typedef struct _npu_vm_runtime_blob_desc_t {+ size_t inputSize; ///< [in] Size of input buffer in bytes+ const uint8_t* pInput; ///< [in] Pointer to input buffer+} npu_vm_runtime_blob_desc_t;++///////////////////////////////////////////////////////////////////////////////+/// @brief Runtime properties+typedef struct _npu_vm_runtime_properties_t {+ uint32_t numOfSubGraphs;+ uint32_t numOfGraphArgs;+} npu_vm_runtime_properties_t;++///////////////////////////////////////////////////////////////////////////////+/// @brief Execute params+typedef struct _npu_vm_runtime_execute_params_t {+ npu_vm_runtime_mem_ref_handle_t* pInputs;+ uint32_t numOfInputs;+ npu_vm_runtime_mem_ref_handle_t* pOutputs;+ uint32_t numOfOutputs;+ ze_context_handle_t ctx;+ ze_device_handle_t device;+ ze_graph_dditable_ext_t* graphDdiTableExt;+ ze_command_list_handle_t* commandLists;+ uint64_t numCommandLists;+ ze_command_queue_handle_t commandQueue;+ ze_fence_handle_t inferenceFence;+ ze_event_handle_t event;+ npu_vm_runtime_execution_context_handle_t executionContext;+} npu_vm_runtime_execute_params_t;++///////////////////////////////////////////////////////////////////////////////+/// @brief Predict output shape params+typedef struct _npu_vm_runtime_predict_output_shape_params_t {+ npu_vm_runtime_mem_ref_handle_t* pInputs;+ uint32_t numOfInputs;+ npu_vm_runtime_mem_ref_handle_t* pOutputs;+ uint32_t numOfOutputs;+} npu_vm_runtime_predict_output_shape_params_t;++///////////////////////////////////////////////////////////////////////////////+/// @brief Returns the API version+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL npuVMRuntimeGetAPIVersion(+ npu_vm_runtime_version_t* pVersion ///< [out] pointer to version information+);++///////////////////////////////////////////////////////////////////////////////+/// @brief Init VM runtime instance and return handle+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL npuVMRuntimeCreate(+ const npu_vm_runtime_blob_desc_t* desc, ///< [in] pointer to graph descriptor+ npu_vm_runtime_handle_t* phRuntime, ///< [out] pointer to handle of VM runtime object created+ npu_vm_runtime_properties_t* pProperties ///< [out] pointer to properties of the runtime+);++///////////////////////////////////////////////////////////////////////////////+/// @brief Destroy VM runtime instance+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL npuVMRuntimeDestroy(+ npu_vm_runtime_handle_t hRuntime ///< [in][release] handle of VM runtime object to destroy+);++///////////////////////////////////////////////////////////////////////////////+/// @brief Get metadata from VM runtime instance+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL npuVMRuntimeGetMetadata(+ npu_vm_runtime_handle_t hRuntime, ///< [in] handle of VM runtime object+ uint32_t argIndex, ///< [in] index of the argument+ ze_graph_argument_properties_3_t* pGraphArgumentProperties, ///< [out] query result for graph argument properties+ ze_graph_argument_metadata_t* pGraphArgumentMetadata, ///< [out] query result for graph argument metadata+ int64_t* upperBound);++///////////////////////////////////////////////////////////////////////////////+/// @brief Execute VM runtime with params+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL npuVMRuntimeExecute(+ npu_vm_runtime_handle_t hRuntime, ///< [in] handle of VM runtime object+ npu_vm_runtime_execute_params_t* pParams ///< [in] pointer to execution parameters+);++///////////////////////////////////////////////////////////////////////////////+/// @brief Predit output shape based on input shape+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL npuVMRuntimePredictOutputShape(+ npu_vm_runtime_handle_t hRuntime, ///< [in] handle of VM runtime object+ npu_vm_runtime_predict_output_shape_params_t* pParams ///< [in] pointer to predict output shape parameters+);++///////////////////////////////////////////////////////////////////////////////+/// @brief Create MemRef handle+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL npuVMRuntimeCreateMemRef(+ int64_t dimsCount, ///< [in] value of tensor rank+ npu_vm_runtime_mem_ref_handle_t* phMemRef); ///< [out] handle of VM runtime MemRef object++///////////////////////////////////////////////////////////////////////////////+/// @brief Destroy MemRef handle+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL+npuVMRuntimeDestroyMemRef(npu_vm_runtime_mem_ref_handle_t hMemRef); ///< [out] handle of VM runtime MemRef object++///////////////////////////////////////////////////////////////////////////////+/// @brief Set new value to MemRef+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL+npuVMRuntimeSetMemRef(npu_vm_runtime_mem_ref_handle_t hMemRef, ///< [in] handle of VM runtime MemRef object+ const void* basePtr, ///< [in] pointer to basePtr+ const void* data, ///< [in] pointer to data+ int64_t offset, ///< [in] offset in MemRef+ int64_t* pSizes, ///< [in] pointer to tensor sizes+ int64_t* pStrides, ///< [in] pointer to tensor strides+ int64_t dimsCount); ///< [in] value of tensor rank++///////////////////////////////////////////////////////////////////////////////+/// @brief Set new value to MemRef+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL+npuVMRuntimeParseMemRef(npu_vm_runtime_mem_ref_handle_t hMemRef, ///< [in] handle of VM runtime MemRef object+ const void** pBasePtr, ///< [out] pointer to basePtr+ const void** pData, ///< [out] pointer to data+ int64_t* pOffset, ///< [out] offset in MemRef+ int64_t* pSizes, ///< [out] pointer to tensor sizes+ int64_t* pStrides, ///< [out] pointer to tensor strides+ int64_t* pDimsCount); ///< [out] value of tensor rank++///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/// @brief Extension version 1.1++///////////////////////////////////////////////////////////////////////////////+/// @brief Init VM runtime instance and return handle+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL npuVMRuntimeCreateExecutionContext(+ npu_vm_runtime_handle_t hRuntime, ///< [in] handle of VM runtime object+ npu_vm_runtime_execution_context_handle_t*+ phExecutionHandle ///< [out] pointer to handle of VM runtime execution context created+);++///////////////////////////////////////////////////////////////////////////////+/// @brief Destroy VM runtime instance+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL npuVMRuntimeDestroyExecutionContext(+ npu_vm_runtime_execution_context_handle_t+ phExecutionHandle ///< [in][release] handle of execution context object to destroy+);++///////////////////////////////////////////////////////////////////////////////+/// @brief Update mutable command list used in execution and execute+NPU_VM_RUNTIME_APIEXPORT npu_vm_runtime_result_t NPU_VM_RUNTIME_APICALL npuVMRuntimeUpdateMutableCommandList(+ npu_vm_runtime_handle_t hRuntime, ///< [in] handle of VM runtime object+ npu_vm_runtime_execute_params_t* pParams, ///< [in] pointer to execution parameters+ uint64_t* argIndexArray, ///< [in] pointer to argument index list+ uint64_t argIndexArraySize); ///< [in] size of argument index list++#if defined(__cplusplus)+} // extern "C"+#endif++#endif // NPU_VM_RUNTIME_H