File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
onnxruntime/core/providers/openvino Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 37
37
38
38
source_group (TREE ${ONNXRUNTIME_ROOT} /core FILES ${onnxruntime_providers_openvino_cc_srcs} )
39
39
onnxruntime_add_shared_library_module (onnxruntime_providers_openvino ${onnxruntime_providers_openvino_cc_srcs} "${ONNXRUNTIME_ROOT} /core/dll/onnxruntime.rc" )
40
+
40
41
onnxruntime_add_include_to_target (onnxruntime_providers_openvino onnxruntime_common onnx nlohmann_json::nlohmann_json )
41
42
install (FILES ${PROJECT_SOURCE_DIR} /../include/onnxruntime/core/providers/openvino/openvino_provider_factory.h
42
43
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /onnxruntime/ )
43
44
set_target_properties (onnxruntime_providers_openvino PROPERTIES CXX_STANDARD 20 )
44
45
set_target_properties (onnxruntime_providers_openvino PROPERTIES LINKER_LANGUAGE CXX )
45
46
set_target_properties (onnxruntime_providers_openvino PROPERTIES FOLDER "ONNXRuntime" )
47
+
48
+ target_compile_options (onnxruntime_providers_openvino PRIVATE
49
+ $< $< NOT:$< CONFIG:Release> > :-DNOT_RELEASE>
50
+ )
51
+
46
52
if (NOT MSVC )
47
53
target_compile_options (onnxruntime_providers_openvino PRIVATE "-Wno-parentheses" )
48
54
endif ()
Original file line number Diff line number Diff line change @@ -321,9 +321,10 @@ static bool IsQDQGraph(const onnxruntime::GraphViewer& graph_viewer) {
321
321
return false ;
322
322
}
323
323
324
- static void DumpOpenVINOEPModel (const std::filesystem::path& onnx_model_path_name,
325
- ONNX_NAMESPACE::ModelProto* model_proto,
326
- const onnxruntime::Node& fused_node) {
324
+ static void DumpOpenVINOEPModel ([[maybe_unused]] const std::filesystem::path& onnx_model_path_name,
325
+ [[maybe_unused]] ONNX_NAMESPACE::ModelProto* model_proto,
326
+ [[maybe_unused]] const onnxruntime::Node& fused_node) {
327
+ #ifdef NOT_RELEASE
327
328
if (openvino_ep::backend_utils::IsDebugEnabled ()) {
328
329
auto model_name = onnx_model_path_name.empty () ? " unknown.onnx" : onnx_model_path_name.filename ();
329
330
@@ -338,6 +339,7 @@ static void DumpOpenVINOEPModel(const std::filesystem::path& onnx_model_path_nam
338
339
std::fstream dump (model_name, std::ios::out | std::ios::trunc | std::ios::binary);
339
340
model_proto->SerializeToOstream (dump);
340
341
}
342
+ #endif
341
343
}
342
344
343
345
std::unique_ptr<ONNX_NAMESPACE::ModelProto>
You can’t perform that action at this time.
0 commit comments