| 28 Feb 2025 |
Sandro 🐧 | The only place where I would like to have a camera has no easy power available | 19:18:27 |
Sandro 🐧 | LOL, you made all relevant changes to the package in 2 years | 19:19:25 |
@hexa:lossy.network | yep | 19:19:42 |
| 1 Mar 2025 |
@hexa:lossy.network | converted the ssdlite model to openvino ir format https://shells.darmstadt.ccc.de/~hexa/omz/ | 01:10:53 |
@hexa:lossy.network | would require openvino-dev, and that is some hot mess to package | 01:11:14 |
@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 | wondering what the resulting license would be | 01:18:41 |
@hexa:lossy.network | ssdlite_mobilenet_v2 is asl20 licensed | 01:19:00 |
| kamileg joined the room. | 02:51:19 |
@hexa:lossy.network | https://github.com/blakeblackshear/frigate/pull/16874 | 04:02:03 |
@hexa:lossy.network | it's that time of the year again | 04:02:08 |
@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 | anyone with magic cpp skills? | 06:32:59 |
@hexa:lossy.network | https://github.com/NixOS/nixpkgs/pull/380543 | 06:33:05 |
K900 | https://github.com/microsoft/onnxruntime/blob/1ffe793a834cf347b13845c15aa9cd008ec23b23/include/onnxruntime/core/framework/ortdevice.h#L19 | 06:35:48 |
K900 | Looks like it's a static | 06:35:50 |
K900 | That's defined in onnxruntime somewhere | 06:36:09 |
@hexa:lossy.network | yup | 06:36:25 |
@hexa:lossy.network | where do we go from here? | 06:39:22 |
K900 | 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 | I 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#L103 | 11:55:10 |
| @achnazoor:matrix.org left the room. | 12:44:14 |
@hexa:lossy.network | yeah, aiui the unit needs to be compiled and linked into the shared library | 17:22:49 |
@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 | this did not resolve the situation | 17:23:25 |
@hexa:lossy.network | ok, I dug into the code | 18:49:58 |
@hexa:lossy.network | and I think onnxruntime_framework does not get linked into the openvino provider | 18:50:11 |
@hexa:lossy.network | I tried to add that to the resulting library, but meh | 19:17:22 |
@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 |