Deprecated UNDEFINED values for execution / performance hints (#16563)

* Deprecated UNDEFINED values for execution / performance hints

* Update src/tests/functional/plugin/gpu/shared_tests_instances/behavior/ov_plugin/properties_tests.cpp

* Fixes

* Fixes
This commit is contained in:
Ilya Lavrenov authored and GitHub committed 2023-03-30 13:48:19 +04:00
1 parent 5b203efb9c
commit ccf9c19f61
20 files changed
+41 -45

No files matched your search

+6
View File
@@ -120,7 +120,9 @@ void next_step(const std::string additional_info = "") {
}
ov::hint::PerformanceMode get_performance_hint(const std::string& device, const ov::Core& core) {
OPENVINO_SUPPRESS_DEPRECATED_START
ov::hint::PerformanceMode ov_perf_hint = ov::hint::PerformanceMode::UNDEFINED;
OPENVINO_SUPPRESS_DEPRECATED_END
auto supported_properties = core.get_property(device, ov::supported_properties);
if (std::find(supported_properties.begin(), supported_properties.end(), ov::hint::performance_mode) !=
supported_properties.end()) {
@@ -132,7 +134,9 @@ ov::hint::PerformanceMode get_performance_hint(const std::string& device, const
} else if (FLAGS_hint == "cumulative_throughput" || FLAGS_hint == "ctput") {
ov_perf_hint = ov::hint::PerformanceMode::CUMULATIVE_THROUGHPUT;
} else if (FLAGS_hint == "none") {
OPENVINO_SUPPRESS_DEPRECATED_START
ov_perf_hint = ov::hint::PerformanceMode::UNDEFINED;
OPENVINO_SUPPRESS_DEPRECATED_END
} else {
throw std::logic_error(
"Incorrect performance hint. Please set -hint option to"
@@ -416,6 +420,7 @@ int main(int argc, char* argv[]) {
return std::find(std::begin(supported_properties), std::end(supported_properties), key) !=
std::end(supported_properties);
};
OPENVINO_SUPPRESS_DEPRECATED_START
// the rest are individual per-device settings (overriding the values set with perf modes)
auto set_throughput_streams = [&]() {
std::string key = getDeviceTypeFromName(device) + "_THROUGHPUT_STREAMS";
@@ -476,6 +481,7 @@ int main(int argc, char* argv[]) {
if (it_streams != device_config.end())
device_nstreams[device] = it_streams->second.as<std::string>();
};
OPENVINO_SUPPRESS_DEPRECATED_END
auto set_infer_precision = [&] {
auto it_device_infer_precision = device_infer_precision.find(device);