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
[NPU] Install VM runtime library and PDB in Release package (#36635)
Shaojie Zhu9a2af95a28b6
diff --git a/src/plugins/intel_npu/cmake/download_compiler_libs.cmake b/src/plugins/intel_npu/cmake/download_compiler_libs.cmakeindex 9ad4af17ff8..16dd0e958bd 100644--- a/src/plugins/intel_npu/cmake/download_compiler_libs.cmake+++ b/src/plugins/intel_npu/cmake/download_compiler_libs.cmake@@ -140,9 +140,7 @@ if(ENABLE_INTEL_NPU_COMPILER)install(FILES ${PLUGIN_COMPILER_LIB} DESTINATION ${OV_CPACK_PLUGINSDIR} COMPONENT ${NPU_PLUGIN_COMPONENT})install(FILES ${PLUGIN_COMPILER_LOADER_LIB} DESTINATION ${OV_CPACK_PLUGINSDIR} COMPONENT ${NPU_PLUGIN_COMPONENT})- if(ENABLE_INTEL_NPU_INTERNAL)- install(FILES ${PLUGIN_COMPILER_VM_RT_RENAMED_LIB} DESTINATION ${OV_CPACK_PLUGINSDIR} COMPONENT ${NPU_INTERNAL_COMPONENT} ${OV_CPACK_COMP_NPU_INTERNAL_EXCLUDE_ALL})- endif()+ install(FILES ${PLUGIN_COMPILER_VM_RT_RENAMED_LIB} DESTINATION ${OV_CPACK_PLUGINSDIR} COMPONENT ${NPU_PLUGIN_COMPONENT})if(WIN32)set(PLUGIN_COMPILER_PDB "${PLUGIN_COMPILER_PDB_PATH}/${PLUGIN_COMPILER_PDB_NAME}")@@ -156,6 +154,7 @@ if(ENABLE_INTEL_NPU_COMPILER)install(FILES ${PLUGIN_COMPILER_PDB} DESTINATION ${OV_CPACK_PLUGINSDIR} COMPONENT pdb EXCLUDE_FROM_ALL)install(FILES ${PLUGIN_COMPILER_LOADER_PDB} DESTINATION ${OV_CPACK_PLUGINSDIR} COMPONENT pdb EXCLUDE_FROM_ALL)+ install(FILES ${PLUGIN_COMPILER_VM_RT_RENAMED_PDB} DESTINATION ${OV_CPACK_PLUGINSDIR} COMPONENT pdb EXCLUDE_FROM_ALL)endif()else()message(FATAL_ERROR "Failed to download prebuilt NPU Plugin Compiler libraries. Can not use plugin compiler libraries!")diff --git a/src/plugins/intel_npu/src/utils/include/intel_npu/utils/vcl/vcl.h b/src/plugins/intel_npu/src/utils/include/intel_npu/utils/vcl/vcl.hindex 3a13932eba9..580a7ababcf 100644--- a/src/plugins/intel_npu/src/utils/include/intel_npu/utils/vcl/vcl.h+++ b/src/plugins/intel_npu/src/utils/include/intel_npu/utils/vcl/vcl.h@@ -262,19 +262,19 @@ DEPRECATED VCL_APIEXPORT vcl_result_t VCL_APICALL vclAllocatedExecutableCreate(vuint8_t** blobBuffer,uint64_t* blobSize);-DEPRECATED VCL_APIEXPORT vcl_result_t VCL_APICALL vclAllocatedExecutableCreate2(vcl_compiler_handle_t compiler,- vcl_executable_desc_t desc,- vcl_allocator2_t* allocator,- uint8_t** blobBuffer,- uint64_t* blobSize);--VCL_APIEXPORT vcl_result_t VCL_APICALL vclAllocatedExecutableCreate3(vcl_compiler_handle_t compiler,+VCL_APIEXPORT vcl_result_t VCL_APICALL vclAllocatedExecutableCreate2(vcl_compiler_handle_t compiler,vcl_executable_desc_t desc,vcl_allocator2_t* allocator,uint8_t** blobBuffer,- uint64_t* blobSize,- uint8_t** compatibilityStringBuffer,- uint64_t* compatibilityStringSize);+ uint64_t* blobSize);++DEPRECATED VCL_APIEXPORT vcl_result_t VCL_APICALL vclAllocatedExecutableCreate3(vcl_compiler_handle_t compiler,+ vcl_executable_desc_t desc,+ vcl_allocator2_t* allocator,+ uint8_t** blobBuffer,+ uint64_t* blobSize,+ uint8_t** compatibilityStringBuffer,+ uint64_t* compatibilityStringSize);VCL_APIEXPORT vcl_result_t VCL_APICALL vclAllocatedExecutableCreate4(vcl_compiler_handle_t compiler,vcl_executable_desc_t desc,@@ -283,6 +283,12 @@ VCL_APIEXPORT vcl_result_t VCL_APICALL vclAllocatedExecutableCreate4(vcl_compileuint64_t* blobSize,vcl_executable_handle_t* executable);+///////////////////////////////////////////////////////////////////////////////+/// @brief Returns the compatibility string associated with the provided executable (if available).+/// @details If `compatibilityString` is NULL, returns the required buffer size (including the null terminator)+/// in `compatibilityStringSize`.+/// @note The handle can be returned by `vclExecutableCreate` or (as a dummy handle for this query) by+/// `vclAllocatedExecutableCreate4`; the handle must be released with `vclExecutableDestroy`.VCL_APIEXPORT vcl_result_t VCL_APICALL vclExecutableGetCompatibilityString(vcl_executable_handle_t executable,char* compatibilityStringBuffer,uint64_t* compatibilityStringSize);