Skip to content

Commit

Permalink
Remove some legacy API header files (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
riverlijunjie authored Jan 17, 2024
1 parent 3095041 commit e98677d
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 52 deletions.
17 changes: 0 additions & 17 deletions modules/nvidia_plugin/src/cuda_compiled_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
//

#include <ie_metric_helpers.hpp>
// ^^ must come before ie_plugin_config.hpp, which is indirectly included by
// cuda_executable_network.hpp

#include <fmt/format.h>

#include <memory_manager/cuda_memory_manager.hpp>
Expand Down Expand Up @@ -309,19 +305,6 @@ ov::Any CompiledModel::get_property(const std::string& name) const {
for (auto& rw_property : rw_properties)
supported_properties.emplace_back(ov::PropertyName(rw_property, PropertyMutability::RO));
return decltype(ov::supported_properties)::value_type{supported_properties};
} else if (EXEC_NETWORK_METRIC_KEY(SUPPORTED_METRICS) == name) {
IE_SET_METRIC_RETURN(SUPPORTED_METRICS,
std::vector<std::string>{METRIC_KEY(NETWORK_NAME),
METRIC_KEY(SUPPORTED_METRICS),
METRIC_KEY(SUPPORTED_CONFIG_KEYS),
METRIC_KEY(OPTIMAL_NUMBER_OF_INFER_REQUESTS)});
} else if (EXEC_NETWORK_METRIC_KEY(SUPPORTED_CONFIG_KEYS) == name) {
std::vector<std::string> configKeys = {};
auto config_properties = config_.get_rw_properties();
for (auto&& key : config_properties) {
configKeys.emplace_back(key);
}
IE_SET_METRIC_RETURN(SUPPORTED_CONFIG_KEYS, configKeys);
} else if (ov::model_name == name) {
auto model_name = model_->get_friendly_name();
return decltype(ov::model_name)::value_type{model_name};
Expand Down
1 change: 0 additions & 1 deletion modules/nvidia_plugin/src/cuda_infer_request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "cuda_infer_request.hpp"

#include <cuda_fp16.h>
#include <debug.h>
#include <fmt/format.h>

#include <algorithm>
Expand Down
28 changes: 0 additions & 28 deletions modules/nvidia_plugin/src/cuda_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,29 +201,6 @@ ov::Any Plugin::get_property(const std::string& name, const ov::AnyMap& properti
return decltype(ov::supported_properties)::value_type{Configuration::get_supported_properties()};
} else if (ov::internal::supported_properties == name) {
return decltype(ov::internal::supported_properties)::value_type{Configuration::get_supported_internal_properties()};
} else if (METRIC_KEY(SUPPORTED_METRICS) == name) {
std::vector<std::string> supportedMetrics = {METRIC_KEY(AVAILABLE_DEVICES),
METRIC_KEY(SUPPORTED_METRICS),
METRIC_KEY(SUPPORTED_CONFIG_KEYS),
ov::device::uuid.name(),
METRIC_KEY(FULL_DEVICE_NAME),
METRIC_KEY(IMPORT_EXPORT_SUPPORT),
METRIC_KEY(DEVICE_ARCHITECTURE),
METRIC_KEY(OPTIMIZATION_CAPABILITIES),
METRIC_KEY(RANGE_FOR_ASYNC_INFER_REQUESTS)};
IE_SET_METRIC_RETURN(SUPPORTED_METRICS, supportedMetrics);
} else if (METRIC_KEY(SUPPORTED_CONFIG_KEYS) == name) {
std::vector<std::string> configKeys = {
CONFIG_KEY(DEVICE_ID), CONFIG_KEY(PERF_COUNT), NVIDIA_CONFIG_KEY(THROUGHPUT_STREAMS)};
auto streamExecutorConfigKeys = ov::threading::IStreamsExecutor::Config{}
.get_property(ov::supported_properties.name())
.as<std::vector<std::string>>();
for (auto&& configKey : streamExecutorConfigKeys) {
if (configKey != InferenceEngine::PluginConfigParams::KEY_CPU_THROUGHPUT_STREAMS) {
configKeys.emplace_back(configKey);
}
}
IE_SET_METRIC_RETURN(SUPPORTED_CONFIG_KEYS, configKeys);
} else if (ov::internal::caching_properties == name) {
return decltype(ov::internal::caching_properties)::value_type{Configuration::get_caching_properties()};
} else if (ov::available_devices == name) {
Expand All @@ -243,8 +220,6 @@ ov::Any Plugin::get_property(const std::string& name, const ov::AnyMap& properti
const auto& props = device.props();
const std::string name = props.name;
return decltype(ov::device::full_name)::value_type{name};
} else if (METRIC_KEY(IMPORT_EXPORT_SUPPORT) == name) {
IE_SET_METRIC_RETURN(IMPORT_EXPORT_SUPPORT, true);
} else if (ov::device::architecture == name) {
CUDA::Device device{full_config.get_device_id()};
const auto& props = device.props();
Expand All @@ -258,9 +233,6 @@ ov::Any Plugin::get_property(const std::string& name, const ov::AnyMap& properti
ov::device::capability::EXPORT_IMPORT,
ov::device::capability::FP32,
ov::device::capability::FP16}};
} else if (METRIC_KEY(OPTIMIZATION_CAPABILITIES) == name) {
std::vector<std::string> capabilities = {METRIC_VALUE(FP32)};
IE_SET_METRIC_RETURN(OPTIMIZATION_CAPABILITIES, capabilities);
} else if (ov::range_for_streams == name) {
return decltype(ov::range_for_streams)::value_type{1, Configuration::reasonable_limit_of_streams};
} else if (ov::range_for_async_infer_requests == name) {
Expand Down
1 change: 0 additions & 1 deletion modules/nvidia_plugin/src/ops/result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <cuda_runtime.h>

#include <cuda_operation_registry.hpp>
#include <exec_graph_info.hpp>
#include <openvino/core/except.hpp>
#include <transformations/rt_info/fused_names_attribute.hpp>
#include <utility>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "openvino/cc/pass/itt.hpp"
#include "concat_transformation.hpp"

#include <exec_graph_info.hpp>
#include "openvino/core/rt_info.hpp"
#include "openvino/op/concat.hpp"
#include "openvino/pass/pattern/op/wrap_type.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "openvino/cc/pass/itt.hpp"
#include "fuse_conv_biasadd_activation.hpp"

#include "exec_graph_info.hpp"
#include "openvino/core/graph_util.hpp"
#include "openvino/core/node.hpp"
#include "openvino/core/node_output.hpp"
Expand Down
1 change: 0 additions & 1 deletion modules/nvidia_plugin/src/transformer/fuse_matmul_add.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "openvino/cc/pass/itt.hpp"
#include "fuse_matmul_add.hpp"

#include <exec_graph_info.hpp>
#include "openvino/core/rt_info.hpp"
#include "openvino/pass/pattern/op/wrap_type.hpp"
#include "openvino/pass/pattern/op/or.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "matmul_transformations.hpp"

#include <cuda_op_buffers_extractor.hpp>
#include <exec_graph_info.hpp>
#include <gsl/span_ext>
#include "openvino/core/rt_info.hpp"
#include "openvino/pass/pattern/op/wrap_type.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include "openvino/cc/pass/itt.hpp"

#include "exec_graph_info.hpp"
#include "openvino/core/rt_info.hpp"
#include "openvino/pass/manager.hpp"
#include "openvino/pass/pattern/op/wrap_type.hpp"
Expand Down

0 comments on commit e98677d

Please sign in to comment.