Skip to content

Commit

Permalink
removed remaining SUPPRESS_DEPRECATED invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-gorokhov committed Jan 2, 2025
1 parent 9e60b47 commit 5c248c9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions samples/cpp/benchmark_app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,12 +491,10 @@ int main(int argc, char* argv[]) {
};

auto set_nthreads_pin = [&](const std::string& str) {
OPENVINO_SUPPRESS_DEPRECATED_START
auto property_name =
str == "nthreads" ? ov::inference_num_threads.name() : ov::hint::enable_cpu_pinning.name();
auto property = str == "nthreads" ? ov::inference_num_threads(int(FLAGS_nthreads))
: ov::hint::enable_cpu_pinning(FLAGS_pin);
OPENVINO_SUPPRESS_DEPRECATED_END
if (supported(property_name) || device_name == "AUTO") {
// create nthreads/pin primary property for HW device or AUTO if -d is AUTO directly.
device_config[property.first] = property.second;
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/auto/src/cumulative_schedule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ void CumuSchedule::init() {
idx++;
} else {
cpu_device_information = device;
OPENVINO_SUPPRESS_DEPRECATED_START
cpu_device_information.config.insert({ov::hint::enable_cpu_pinning.name(), "YES"});
OPENVINO_SUPPRESS_DEPRECATED_END
}
}
if (!cpu_device_information.device_name.empty())
Expand Down
1 change: 0 additions & 1 deletion src/plugins/intel_cpu/src/compiled_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ ov::Any CompiledModel::get_property(const std::string& name) const {
const auto streams = config.streamExecutorConfig.get_streams();
return decltype(ov::num_streams)::value_type(
streams); // ov::num_streams has special negative values (AUTO = -1, NUMA = -2)
OPENVINO_SUPPRESS_DEPRECATED_START
} else if (name == ov::inference_num_threads) {
const auto num_threads = config.streamExecutorConfig.get_threads();
return decltype(ov::inference_num_threads)::value_type(num_threads);
Expand Down
1 change: 0 additions & 1 deletion src/plugins/intel_cpu/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ ov::Any Plugin::get_property(const std::string& name, const ov::AnyMap& options)
const auto streams = engConfig.streamExecutorConfig.get_streams();
return decltype(ov::num_streams)::value_type(
streams); // ov::num_streams has special negative values (AUTO = -1, NUMA = -2)
OPENVINO_SUPPRESS_DEPRECATED_START
} else if (name == ov::device::id.name()) {
return decltype(ov::device::id)::value_type{engConfig.device_id};
} else if (name == ov::inference_num_threads) {
Expand Down

0 comments on commit 5c248c9

Please sign in to comment.