!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

506 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant135 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
28 Feb 2025
@sandro:supersandro.deSandro 🐧The only place where I would like to have a camera has no easy power available 19:18:27
@sandro:supersandro.deSandro 🐧LOL, you made all relevant changes to the package in 2 years19:19:25
@hexa:lossy.network@hexa:lossy.networkyep19:19:42
1 Mar 2025
@hexa:lossy.network@hexa:lossy.networkconverted the ssdlite model to openvino ir format https://shells.darmstadt.ccc.de/~hexa/omz/01:10:53
@hexa:lossy.network@hexa:lossy.networkwould require openvino-dev, and that is some hot mess to package01:11:14
@hexa:lossy.network@hexa:lossy.network* for frigate users: converted the ssdlite model to openvino ir format https://shells.darmstadt.ccc.de/~hexa/omz/01:11:38
@hexa:lossy.network@hexa:lossy.networkwondering what the resulting license would be01:18:41
@hexa:lossy.network@hexa:lossy.networkssdlite_mobilenet_v2 is asl20 licensed01:19:00
@kamileg:tchncs.dekamileg joined the room.02:51:19
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/blakeblackshear/frigate/pull/1687404:02:03
@hexa:lossy.network@hexa:lossy.networkit's that time of the year again04:02:08
@hexa:lossy.network@hexa:lossy.network

RuntimeError: /build/source/onnxruntime/core/session/provider_bridge_ort.cc:1539 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library /nix/store/0d0l820v8vnw7kf959xr6bvpvyg21r2b-onnxruntime-1.20.2/lib/libonnxruntime_providers_openvino.so with error: /nix/store/0d0l820v8vnw7kf959xr6bvpvyg21r2b-onnxruntime-1.20.2/lib/libonnxruntime_providers_openvino.so: undefined symbol: _ZN9OrtDevice3NPUE

06:32:49
@hexa:lossy.network@hexa:lossy.networkanyone with magic cpp skills?06:32:59
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/NixOS/nixpkgs/pull/38054306:33:05
@k900:0upti.meK900https://github.com/microsoft/onnxruntime/blob/1ffe793a834cf347b13845c15aa9cd008ec23b23/include/onnxruntime/core/framework/ortdevice.h#L1906:35:48
@k900:0upti.meK900Looks like it's a static06:35:50
@k900:0upti.meK900That's defined in onnxruntime somewhere06:36:09
@hexa:lossy.network@hexa:lossy.networkyup06:36:25
@hexa:lossy.network@hexa:lossy.networkwhere do we go from here?06:39:22
@k900:0upti.meK900 I feel like this is some C++ ABI bullshit because why is it even trying to access that as a symbol 06:41:18
@mattleon:matrix.orgmattleonI work on C++ all day, but that doesn't make me someone with magic cpp skills. That said, my best guess is that onnxruntime is being built with a define or flag that does not include that file or symbol. It looks like we're specifying `USE_OPENVINO_NPU` etc., but do we need to be using MULTI mode to enable that? https://github.com/microsoft/onnxruntime/blob/1ffe793a834cf347b13845c15aa9cd008ec23b23/tools/ci_build/build.py#L10311:55:10
@achnazoor:matrix.org@achnazoor:matrix.org left the room.12:44:14
@hexa:lossy.network@hexa:lossy.networkyeah, aiui the unit needs to be compiled and linked into the shared library17:22:49
@hexa:lossy.network@hexa:lossy.network
+    (lib.cmakeFeature "onnxruntime_USE_OPENVINO_AUTO" (if effectiveStdenv.hostPlatform.system == "x86_64-linux" then "NPU,GPU,CPU" else "GPU"))
17:23:18
@hexa:lossy.network@hexa:lossy.networkthis did not resolve the situation17:23:25
@hexa:lossy.network@hexa:lossy.networkok, I dug into the code18:49:58
@hexa:lossy.network@hexa:lossy.networkand I think onnxruntime_framework does not get linked into the openvino provider18:50:11
@hexa:lossy.network@hexa:lossy.networkI tried to add that to the resulting library, but meh19:17:22
@hexa:lossy.network@hexa:lossy.network
diff --git a/cmake/onnxruntime_providers_openvino.cmake b/cmake/onnxruntime_providers_openvino.cmake
index 143d002c61..c7ad02b94d 100644
--- a/cmake/onnxruntime_providers_openvino.cmake
+++ b/cmake/onnxruntime_providers_openvino.cmake
@@ -37,7 +37,7 @@
 
   source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_openvino_cc_srcs})
   onnxruntime_add_shared_library_module(onnxruntime_providers_openvino ${onnxruntime_providers_openvino_cc_srcs} "${ONNXRUNTIME_ROOT}/core/dll/onnxruntime.rc")
-  onnxruntime_add_include_to_target(onnxruntime_providers_openvino onnxruntime_common onnx nlohmann_json::nlohmann_json)
+  onnxruntime_add_include_to_target(onnxruntime_providers_openvino onnxruntime_common onnxruntime_framework onnx nlohmann_json::nlohmann_json)
   install(FILES ${PROJECT_SOURCE_DIR}/../include/onnxruntime/core/providers/openvino/openvino_provider_factory.h
     DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/onnxruntime/)
   set_target_properties(onnxruntime_providers_openvino PROPERTIES CXX_STANDARD 20)
19:17:25

Show newer messages


Back to Room ListRoom Version: 6