From fbed7e13a8bba9c8d30191f9c612ca9bbec14c68 Mon Sep 17 00:00:00 2001 From: Mingyu Kim Date: Thu, 30 Sep 2021 16:10:50 +0900 Subject: [PATCH] [GPU] debug_config bug fix of not accepting multiple strings (#7754) It receives space-separated parameter. Currently, only first argument is received in case of string argument. --- .../thirdparty/clDNN/runtime/debug_configuration.cpp | 5 +++++ .../thirdparty/clDNN/tests/test_cases/reorder_gpu_test.cpp | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/inference-engine/thirdparty/clDNN/runtime/debug_configuration.cpp b/inference-engine/thirdparty/clDNN/runtime/debug_configuration.cpp index debfc05f12e..2b810895fc9 100644 --- a/inference-engine/thirdparty/clDNN/runtime/debug_configuration.cpp +++ b/inference-engine/thirdparty/clDNN/runtime/debug_configuration.cpp @@ -57,6 +57,11 @@ T convert_to(const std::string &str) { return res; } +template <> +std::string convert_to(const std::string &str) { + return str; +} + template void get_debug_env_var(const std::string &var, T &val, std::vector allowed_option_prefixes) { bool found = false; diff --git a/inference-engine/thirdparty/clDNN/tests/test_cases/reorder_gpu_test.cpp b/inference-engine/thirdparty/clDNN/tests/test_cases/reorder_gpu_test.cpp index 32545853cf0..d49058dbf3b 100644 --- a/inference-engine/thirdparty/clDNN/tests/test_cases/reorder_gpu_test.cpp +++ b/inference-engine/thirdparty/clDNN/tests/test_cases/reorder_gpu_test.cpp @@ -2398,7 +2398,6 @@ INSTANTIATE_TEST_SUITE_P(DISABLED_REORDER, #ifdef ENABLE_ONEDNN_FOR_GPU TEST(reorder_onednn_gpu, basic_convert_int8) { - auto& engine = get_onednn_test_engine(); layout in_layout = { type_to_data_type::value, format::byxf, { 1, 1, 3, 3 } }; layout byte_layout = { type_to_data_type::value, format::bfyx, { 1, 1, 3, 3 } };