File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
onnxruntime/core/providers/openvino Expand file tree Collapse file tree 2 files changed +8
-1
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
+
41
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Release" )
42
+ target_compile_definitions (onnxruntime_providers_openvino PRIVATE
43
+ OPENVINO_NON_RELEASE_BUILD=1
44
+ )
45
+ endif ()
46
+
40
47
onnxruntime_add_include_to_target(onnxruntime_providers_openvino onnxruntime_common onnx nlohmann_json::nlohmann_json)
41
48
install (FILES ${PROJECT_SOURCE_DIR} /../include /onnxruntime/core/providers/openvino/openvino_provider_factory.h
42
49
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /onnxruntime/)
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ static bool IsQDQGraph(const onnxruntime::GraphViewer& graph_viewer) {
323
323
static void DumpOpenVINOEPModel ([[maybe_unused]] const std::filesystem::path& onnx_model_path_name,
324
324
[[maybe_unused]] ONNX_NAMESPACE::ModelProto* model_proto,
325
325
[[maybe_unused]] const onnxruntime::Node& fused_node) {
326
- #ifndef NDEBUG
326
+ #ifdef OPENVINO_NON_RELEASE_BUILD
327
327
if (openvino_ep::backend_utils::IsDebugEnabled ()) {
328
328
auto model_name = onnx_model_path_name.empty () ? " unknown.onnx" : onnx_model_path_name.filename ();
329
329
You can’t perform that action at this time.
0 commit comments