From 14c0f0f02a240d116441ef9da236c0eae9fc00f6 Mon Sep 17 00:00:00 2001 From: "Liu, Dan1" <dan1.liu@intel.com> Date: Wed, 7 Aug 2024 12:25:54 +0800 Subject: [PATCH] test --- src/plugins/intel_npu/src/plugin/include/plugin.hpp | 2 +- src/plugins/intel_npu/tools/compile_tool/CMakeLists.txt | 8 +++++--- src/plugins/intel_npu/tools/compile_tool/main.cpp | 8 ++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/plugins/intel_npu/src/plugin/include/plugin.hpp b/src/plugins/intel_npu/src/plugin/include/plugin.hpp index c7b63f22fe1aff..be4d68b5f342c7 100644 --- a/src/plugins/intel_npu/src/plugin/include/plugin.hpp +++ b/src/plugins/intel_npu/src/plugin/include/plugin.hpp @@ -18,7 +18,7 @@ #include "openvino/runtime/so_ptr.hpp" namespace intel_npu { -extern bool flag_Dryon; +extern bool flag_Dryon; class Plugin : public ov::IPlugin { public: Plugin(); diff --git a/src/plugins/intel_npu/tools/compile_tool/CMakeLists.txt b/src/plugins/intel_npu/tools/compile_tool/CMakeLists.txt index c15c67e162e4a3..a5e90dc52b0a50 100644 --- a/src/plugins/intel_npu/tools/compile_tool/CMakeLists.txt +++ b/src/plugins/intel_npu/tools/compile_tool/CMakeLists.txt @@ -4,8 +4,9 @@ # set(TARGET_NAME compile_tool) - -target_link_libraries(${NPU_PLUGIN_TARGET}) +message("==========1============") +# find_package(openvino::npu_al) #感觉这部分不需要使用 +message("==========2============") if (NOT DEFINED PROJECT_NAME) cmake_minimum_required(VERSION 3.13 FATAL_ERROR) @@ -26,7 +27,8 @@ ov_add_target(ADD_CPPLINT PRIVATE openvino::runtime gflags - Threads::Threads) + Threads::Threads + openvino::npu_al) set_target_properties(${TARGET_NAME} PROPERTIES FOLDER ${CMAKE_CURRENT_SOURCE_DIR} diff --git a/src/plugins/intel_npu/tools/compile_tool/main.cpp b/src/plugins/intel_npu/tools/compile_tool/main.cpp index ef31a0497966e3..8adb680d092855 100644 --- a/src/plugins/intel_npu/tools/compile_tool/main.cpp +++ b/src/plugins/intel_npu/tools/compile_tool/main.cpp @@ -19,7 +19,7 @@ #include "tools_helpers.hpp" -#include "src/plugins/intel_npu/src/plugin/include/plugin.hpp" +#include "al/include/update_flage.hpp" static constexpr char help_message[] = "Optional. Print the usage message."; @@ -47,12 +47,12 @@ static constexpr char outputs_precision_message[] = static constexpr char iop_message[] = "Optional. Specifies precision for input and output layers by name.\n" - " Example: -iop \"input:FP16, output:FP16\".\n" + " Example: -iop \"input:FP16, output:FP16\".\n" " Notice that quotes are required.\n" " Overwrites precision from ip and op options for specified " "layers."; -static constexpr char inputs_layout_message[] = "Optional. Specifies layout for all input layers of the network."; +static constexpr char inputs_l ayout_message[] = "Optional. Specifies layout for all input layers of the network."; static constexpr char outputs_layout_message[] = "Optional. Specifies layout for all output layers of the network."; @@ -420,7 +420,7 @@ static bool parseCommandLine(int* argc, char*** argv) { } if (!FLAGS_dryon.empty()) { - bool flag_Dryon = true; + intel_npu::update_fflag(true); } if (1 < *argc) {