Skip to content
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

[GPU] POC for shared plugin config #28667

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b8b8ff2
Base impl
vladimir-paramuzov Dec 17, 2024
344e277
make it common
vladimir-paramuzov Dec 17, 2024
d7f73b3
env and config
vladimir-paramuzov Dec 17, 2024
5613eb8
Replace old config & fixes
vladimir-paramuzov Dec 18, 2024
d70d23b
prefix for config members and unit tests
vladimir-paramuzov Dec 18, 2024
2b63c30
added visibility for options
vladimir-paramuzov Dec 19, 2024
cec123b
remove old config
vladimir-paramuzov Dec 19, 2024
a7fda69
enhancements
vladimir-paramuzov Dec 19, 2024
45ba524
update behavior for set/get property. Add help message
vladimir-paramuzov Dec 23, 2024
af121ec
refactor
vladimir-paramuzov Dec 23, 2024
4b90a8a
Hide config class members
vladimir-paramuzov Dec 23, 2024
5a2a5d5
Options visibility update
vladimir-paramuzov Dec 24, 2024
23deb9d
Fixes and visit_attributes method impl
vladimir-paramuzov Dec 24, 2024
25c723b
Refactor debug knobs
vladimir-paramuzov Dec 24, 2024
452d2ca
split set_prop and set_user_prop again
vladimir-paramuzov Dec 24, 2024
6c013b0
extended bool any parsing options
vladimir-paramuzov Dec 24, 2024
3bd344d
debug properties wip
vladimir-paramuzov Jan 14, 2025
c238064
fix apply rt info
vladimir-paramuzov Jan 14, 2025
81c8509
wip
vladimir-paramuzov Jan 15, 2025
8f9d035
[GPU] Global static vars. Removed old debug config
vladimir-paramuzov Jan 20, 2025
c6637f0
fix visitors
vladimir-paramuzov Jan 21, 2025
a025842
build fixes
vladimir-paramuzov Jan 21, 2025
2c991e8
minor fixes
vladimir-paramuzov Jan 23, 2025
34776f5
cut off debug properties for release build
vladimir-paramuzov Jan 23, 2025
ac836c9
config clone. Visibility fixes
vladimir-paramuzov Jan 24, 2025
73cf4ac
added comment about config copy
vladimir-paramuzov Jan 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/core/src/any.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <limits>
#include <string>
#include "openvino/util/common_util.hpp"
namespace {
template <class Container>
bool contains_type_index(Container&& types, const std::type_info& user_type) {
Expand Down Expand Up @@ -202,9 +203,14 @@ namespace util {
void Read<bool>::operator()(std::istream& is, bool& value) const {
std::string str;
is >> str;
if (str == "YES") {

std::set<std::string> off = {"0", "false", "off", "no"};
std::set<std::string> on = {"1", "true", "on", "yes"};
str = util::to_lower(str);

if (on.count(str)) {
value = true;
} else if (str == "NO") {
} else if (off.count(str)) {
value = false;
} else {
OPENVINO_THROW("Could not convert to bool from string " + str);
Expand Down
6 changes: 5 additions & 1 deletion src/inference/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ target_compile_definitions(${TARGET_NAME}_obj PRIVATE
IMPLEMENT_OPENVINO_RUNTIME_API
$<$<TARGET_EXISTS:openvino_proxy_plugin_obj>:PROXY_PLUGIN_ENABLED>)

if(ENABLE_DEBUG_CAPS)
target_compile_definitions(${TARGET_NAME}_obj PUBLIC ENABLE_DEBUG_CAPS)
endif()

target_include_directories(${TARGET_NAME}_obj SYSTEM PRIVATE
$<TARGET_PROPERTY:openvino::pugixml,INTERFACE_INCLUDE_DIRECTORIES>
$<$<TARGET_EXISTS:xbyak::xbyak>:$<TARGET_PROPERTY:xbyak::xbyak,INTERFACE_INCLUDE_DIRECTORIES>>)
Expand All @@ -87,7 +91,7 @@ target_include_directories(${TARGET_NAME}_obj PRIVATE
# for ov_plugins.hpp
$<IF:$<AND:$<BOOL:${OV_GENERATOR_MULTI_CONFIG}>,$<VERSION_GREATER_EQUAL:${CMAKE_VERSION},3.20>>,${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>,${CMAKE_CURRENT_BINARY_DIR}>)

target_link_libraries(${TARGET_NAME}_obj PRIVATE openvino::itt openvino::util openvino::core::dev)
target_link_libraries(${TARGET_NAME}_obj PRIVATE openvino::itt openvino::util openvino::core::dev nlohmann_json::nlohmann_json)
ov_mark_target_as_cc(${TARGET_NAME}_obj)

# OpenVINO Runtime is public API => need to mark this library as important for ABI free
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,11 @@ static constexpr Property<bool, PropertyMutability::RO> compiled_model_runtime_p
*/
static constexpr Property<float, PropertyMutability::RW> query_model_ratio{"QUERY_MODEL_RATIO"};

/**
* @brief Allow execution of low precision transformations in plugin's pipelines
* @ingroup ov_dev_api_plugin_api
*/
static constexpr Property<bool, PropertyMutability::RW> enable_lp_transformations{"LP_TRANSFORMS_MODE"};

} // namespace internal
} // namespace ov
Loading
Loading