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 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2f88916
Base impl
vladimir-paramuzov Dec 17, 2024
fea78f8
make it common
vladimir-paramuzov Dec 17, 2024
688fd8b
env and config
vladimir-paramuzov Dec 17, 2024
74b8a9d
Replace old config & fixes
vladimir-paramuzov Dec 18, 2024
00467d6
prefix for config members and unit tests
vladimir-paramuzov Dec 18, 2024
c1906a0
added visibility for options
vladimir-paramuzov Dec 19, 2024
88fc939
remove old config
vladimir-paramuzov Dec 19, 2024
36b015e
enhancements
vladimir-paramuzov Dec 19, 2024
af35572
update behavior for set/get property. Add help message
vladimir-paramuzov Dec 23, 2024
5de0d0c
refactor
vladimir-paramuzov Dec 23, 2024
f92f522
Hide config class members
vladimir-paramuzov Dec 23, 2024
3c87a02
Options visibility update
vladimir-paramuzov Dec 24, 2024
7b8bc53
Fixes and visit_attributes method impl
vladimir-paramuzov Dec 24, 2024
a55f676
Refactor debug knobs
vladimir-paramuzov Dec 24, 2024
4978f40
split set_prop and set_user_prop again
vladimir-paramuzov Dec 24, 2024
7acfe02
extended bool any parsing options
vladimir-paramuzov Dec 24, 2024
e65a33e
debug properties wip
vladimir-paramuzov Jan 14, 2025
99327f2
fix apply rt info
vladimir-paramuzov Jan 14, 2025
8f52a11
wip
vladimir-paramuzov Jan 15, 2025
bc31066
[GPU] Global static vars. Removed old debug config
vladimir-paramuzov Jan 20, 2025
59bebd5
fix visitors
vladimir-paramuzov Jan 21, 2025
ec2cbdb
build fixes
vladimir-paramuzov Jan 21, 2025
8b413d0
minor fixes
vladimir-paramuzov Jan 23, 2025
0a248f7
cut off debug properties for release build
vladimir-paramuzov Jan 23, 2025
9aa7c1a
config clone. Visibility fixes
vladimir-paramuzov Jan 24, 2025
64b4e1b
added comment about config copy
vladimir-paramuzov Jan 24, 2025
1bc7a7b
fix tests
vladimir-paramuzov Jan 27, 2025
47b5bea
build fixes
vladimir-paramuzov Jan 27, 2025
07134d4
cpu test fix
vladimir-paramuzov Jan 27, 2025
787972b
improve bool any parsing
vladimir-paramuzov Jan 27, 2025
0fb4995
fix cpplint
vladimir-paramuzov Jan 27, 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
12 changes: 10 additions & 2 deletions src/core/src/any.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

#include <limits>
#include <string>
#include <string_view>
#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 +204,15 @@ namespace util {
void Read<bool>::operator()(std::istream& is, bool& value) const {
std::string str;
is >> str;
if (str == "YES") {

using namespace std::literals;
constexpr std::array off = {"0"sv, "false"sv, "off"sv, "no"sv};
constexpr std::array on = {"1"sv, "true"sv, "on"sv, "yes"sv};
str = util::to_lower(str);

if (std::find(on.begin(), on.end(), str) != on.end()) {
value = true;
} else if (str == "NO") {
} else if (std::find(off.begin(), off.end(), str) != off.end()) {
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