Skip to content

Commit

Permalink
fix: Fixed Debug Build Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitm3k committed Jul 23, 2024
1 parent bd433e2 commit 2919f85
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
3 changes: 1 addition & 2 deletions onnxruntime/core/providers/openvino/backend_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ Status BackendManager::ExportCompiledBlobAsEPCtxNode(const onnxruntime::GraphVie
logger,
global_context_.ep_context_embed_mode,
model_blob_str,
openvino_sdk_version_,
GetGlobalContext().device_type));
openvino_sdk_version_));

return Status::OK();
}
Expand Down
3 changes: 1 addition & 2 deletions onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ Status EPCtxHandler::ExportEPCtxModel(const GraphViewer& graph_viewer,
const logging::Logger& logger,
const bool& ep_context_embed_mode,
const std::string& model_blob_str,
const std::string& openvino_sdk_version,
const std::string& device_type) const {
const std::string& openvino_sdk_version) const {
auto model_build = graph_viewer.CreateModel(logger);
auto& graph_build = model_build->MainGraph();

Expand Down
3 changes: 1 addition & 2 deletions onnxruntime/core/providers/openvino/onnx_ctx_model_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class EPCtxHandler {
const logging::Logger& logger,
const bool& ep_context_embed_mode,
const std::string& model_blob_str,
const std::string& openvino_sdk_version,
const std::string& device_type) const;
const std::string& openvino_sdk_version) const;
Status ImportBlobFromEPCtxModel(const GraphViewer& graph_viewer);
bool CheckForOVEPCtxNode(const GraphViewer& graph_viewer, std::string openvino_sdk_version) const;
bool IsValidOVEPCtxGraph() const { return is_valid_ep_ctx_graph_; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ struct OpenVINOExecutionProviderInfo {

for (auto& device : available_devices) {
if (ov_supported_device_types.find(device) == ov_supported_device_types.end()) {
auto ov_supported_device_types_update = ov_supported_device_types.emplace(device);
ov_supported_device_types.emplace(device);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct OpenVINO_Provider : Provider {

for (auto& device : available_devices) {
if (ov_supported_device_types.find(device) == ov_supported_device_types.end()) {
auto ov_supported_device_types_update = ov_supported_device_types.emplace(device);
ov_supported_device_types.emplace(device);
}
}
if (deprecated_device_types.find(device_type) != deprecated_device_types.end()) {
Expand Down
4 changes: 4 additions & 0 deletions onnxruntime/test/perftest/ort_test_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,10 @@ select from 'TF8', 'TF16', 'UINT8', 'FLOAT', 'ITENSOR'. \n)");
std::set<std::string> deprecated_device_types = {"CPU_FP32", "GPU_FP32",
"GPU.0_FP32", "GPU.1_FP32", "GPU_FP16",
"GPU.0_FP16", "GPU.1_FP16"};
size_t num_gpus = 10;
for (size_t i = 0; i <= num_gpus; i++) {
ov_supported_device_types.emplace("GPU." + std::to_string(i));
}
if (ov_supported_device_types.find(value) != ov_supported_device_types.end()) {
ov_options[key] = value;
} else if (deprecated_device_types.find(value) != deprecated_device_types.end()) {
Expand Down

0 comments on commit 2919f85

Please sign in to comment.