-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dryon execution ba681ed72d #18
Conversation
@@ -413,6 +421,10 @@ static bool parseCommandLine(int* argc, char*** argv) { | |||
throw std::invalid_argument("Target device name is required"); | |||
} | |||
|
|||
if (!FLAGS_dryon.empty()) { | |||
intel_npu::update_dryon_flag(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need test the flag status.
Does there need a function to check flag status?
# find_package(openvino::npu_al) #感觉这部分不需要使用 | ||
file(GLOB_RECURSE DRYONEXECUTION_HEADERS ${PROJECT_SOURCE_DIR}/src/plugins/intel_npu/src/*.hpp) | ||
message("==========2============") | ||
message("@@@@${DRYONEXECUTION_HEADERS}@@@@") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this part
@@ -15,16 +20,21 @@ endif() | |||
# | |||
# Define the target | |||
# | |||
|
|||
message("${CMAKE_CURRENT_SOURCE_DIR} is what???") | |||
message("${PROJECT_SOURCE_DIR} is what???") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this part
ov_add_target(ADD_CPPLINT | ||
TYPE EXECUTABLE | ||
NAME ${TARGET_NAME} | ||
ROOT ${CMAKE_CURRENT_SOURCE_DIR} | ||
INCLUDES | ||
/home/dl5w0502/vpux/openvino/src/plugins/intel_npu/src/al/include/ | ||
${PROJECT_SOURCE_DIR}/src/plugins/intel_npu/src/al/include/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep one in here. test which one is useful.
@@ -0,0 +1,19 @@ | |||
#pragma once | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[reviewdog-suggester] reported by reviewdog 🐶
#include "update_dryon_flag.hpp" | |
{false, | ||
ov::PropertyMutability::RO, | ||
[&](const Config&) { | ||
return _metrics->GetInternalSupportedProperties(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this part can be replaced by static std::vector<ov::PropertyName> Metrics_internalSupportedProperties = {ov::internal::caching_properties.name()};
is not it?
|
||
#include <iostream> | ||
#include "update_dryon_flag.hpp" | ||
#include "/home/dl5w0502/vpux/openvino/src/plugins/intel_npu/src/plugin/include/plugin.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this part need to be fix with relative path.
|
||
|
||
#include <iostream> | ||
#include "/home/dl5w0502/vpux/openvino/src/plugins/intel_npu/src/plugin/include/plugin.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this part need to be fix with relative path.
@@ -14,6 +14,7 @@ set_target_properties(${TARGET_NAME} PROPERTIES EXPORT_NAME npu_al) | |||
target_include_directories(${TARGET_NAME} | |||
PUBLIC | |||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | |||
# ${CMAKE_CURRENT_SOURCE_DIR}/../plugin/include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how can add relative path of plugin/include
?
To be implemented: 1)new compile_tool for dry on execution (Low reuse) |
extern bool flag_Dryon; | ||
bool get_dryon_flag(); | ||
void update_dryon_flag(bool flag); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[reviewdog-suggester] reported by reviewdog 🐶
} | |
} // namespace intel_npu |
|
||
|
||
#include <iostream> | ||
#include "update_dryon_flag.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[reviewdog-suggester] reported by reviewdog 🐶
#include "update_dryon_flag.hpp" |
bool get_dryon_flag(){ | ||
if(flag_Dryon) | ||
std::cout << " (get)!!!! true"<< std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[reviewdog-suggester] reported by reviewdog 🐶
bool get_dryon_flag(){ | |
if(flag_Dryon) | |
std::cout << " (get)!!!! true"<< std::endl; | |
bool get_dryon_flag() { | |
if (flag_Dryon) | |
std::cout << " (get)!!!! true" << std::endl; |
if(flag_Dryon) | ||
std::cout << " (get)!!!! true"<< std::endl; | ||
else | ||
std::cout << " (get)!!!! flase"<< std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[reviewdog-suggester] reported by reviewdog 🐶
std::cout << " (get)!!!! flase"<< std::endl; | |
std::cout << " (get)!!!! flase" << std::endl; |
if(flag_Dryon) | ||
std::cout << " !!!! true"<< std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[reviewdog-suggester] reported by reviewdog 🐶
if(flag_Dryon) | |
std::cout << " !!!! true"<< std::endl; | |
if (flag_Dryon) | |
std::cout << " !!!! true" << std::endl; |
std::cout << " !!!! flase"<< std::endl; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[reviewdog-suggester] reported by reviewdog 🐶
std::cout << " !!!! flase"<< std::endl; | |
std::cout << " !!!! flase" << std::endl; |
if(flag_Dryon) | ||
std::cout << " !!!! true"<< std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[reviewdog-suggester] reported by reviewdog 🐶
if(flag_Dryon) | |
std::cout << " !!!! true"<< std::endl; | |
if (flag_Dryon) | |
std::cout << " !!!! true" << std::endl; |
std::cout << " !!!! flase"<< std::endl; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[reviewdog-suggester] reported by reviewdog 🐶
std::cout << " !!!! flase"<< std::endl; | |
std::cout << " !!!! flase" << std::endl; | |
std::printf(" --------after update, %d\n", get_dryon_flag()); | ||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[reviewdog-suggester] reported by reviewdog 🐶
} | |
} // namespace intel_npu |
@@ -54,6 +53,10 @@ class Plugin : public ov::IPlugin { | |||
const ov::AnyMap& properties) const override; | |||
|
|||
private: | |||
void init(); | |||
void initPluginWithoutBackend(); | |||
std::map<std::string, std::tuple<bool, ov::PropertyMutability, std::function<ov::Any(const Config&)>>> Generate_supportedPropert(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[reviewdog-suggester] reported by reviewdog 🐶
std::map<std::string, std::tuple<bool, ov::PropertyMutability, std::function<ov::Any(const Config&)>>> Generate_supportedPropert(); | |
std::map<std::string, std::tuple<bool, ov::PropertyMutability, std::function<ov::Any(const Config&)>>> | |
Generate_supportedPropert(); |
Why is the flag not passed correctly |
This PR will be closed in a week because of 2 weeks of no activity. |
Details:
Tickets: