Skip to content

Commit 6d54966

Browse files
saurabhkale17ankitm3k
authored andcommitted
Add Config for Release build
* fix model save config * resolve unused variables error * fix model save for various configs in ovep * use generator exp to work with multi config build
1 parent c923132 commit 6d54966

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/onnxruntime_providers_openvino.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
set_target_properties(onnxruntime_providers_openvino PROPERTIES FOLDER "ONNXRuntime")
4747

4848
target_compile_options(onnxruntime_providers_openvino PRIVATE
49-
$<$<CONFIG:Release>:-DRELEASE>
49+
$<$<NOT:$<CONFIG:Release>>:-DNOT_RELEASE>
5050
)
5151

5252
if(NOT MSVC)

onnxruntime/core/providers/openvino/backend_manager.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ static bool IsQDQGraph(const onnxruntime::GraphViewer& graph_viewer) {
325325
static void DumpOpenVINOEPModel([[maybe_unused]] const std::filesystem::path& onnx_model_path_name,
326326
[[maybe_unused]] ONNX_NAMESPACE::ModelProto* model_proto,
327327
[[maybe_unused]] const onnxruntime::Node& fused_node) {
328-
#ifndef RELEASE
328+
#ifdef NOT_RELEASE
329329
if (openvino_ep::backend_utils::IsDebugEnabled()) {
330330
auto model_name = onnx_model_path_name.empty() ? "unknown.onnx" : onnx_model_path_name.filename();
331331

0 commit comments

Comments
 (0)