Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OV plugin does not load on Linux #34

Open
jcarrano opened this issue Mar 17, 2023 · 11 comments
Open

OV plugin does not load on Linux #34

jcarrano opened this issue Mar 17, 2023 · 11 comments

Comments

@jcarrano
Copy link

I managed to get the OpenVino plugin to compile under Arch Linux after a few tweaks but VapourSynth is not loading it. The shared object is loaded according to strace, but vs reports:

AttributeError: No attribute with the name ov exists. Did you mistype a plugin namespace?

What is the procedure to debug this? I'm not familiar with VS development but I can try to debug it I'm given me some pointers.

@WolframRhodium
Copy link
Contributor

Probably the dependency libtbb.so is not loaded?

@AkarinVS
Copy link
Member

First, ldd libvsov.so to see if all dependencies can be found.

Then, set LD_DEBUG=all and then run vspipe with a trivial vpy that load the plugin. The output on stderr might contain some pointers as to why the plugin fails to load.

@jcarrano
Copy link
Author

Thanks for the support.

The so was not being linked against onnx (which for some reason is a static lib in my system). So I added -lonnx. Also, it was linking against protobuf-lite only, but it needed the protobuf with typeinfo, so I added -lprotobuf, and I messed around with the linking order and got it to work.

The GPU backend does not work. It says cldnn program build failed! Could not find entry point. CPU works but the performance is not worth it.

@WolframRhodium
Copy link
Contributor

Did you fetch all submodules of openvino? Is OV_CPU faster than ORT_CPU?

@jcarrano
Copy link
Author

jcarrano commented Apr 4, 2023

Thanks, I did not have time to try OV vs ORT. I gave up when I realized that I wouldn't get far anyways with the intel GPU, so now I'm trying to compile the ONNXRuntime based one to use with cuda.

@lu0se
Copy link

lu0se commented Nov 18, 2023

Thanks, I did not have time to try OV vs ORT. I gave up when I realized that I wouldn't get far anyways with the intel GPU, so now I'm trying to compile the ONNXRuntime based one to use with cuda.

@jcarrano have you built the ONNXRuntime based one to use with cuda succefully?

@WolframRhodium
Copy link
Contributor

WolframRhodium commented Nov 18, 2023

@lu0se Is there any issue? I use ort_cuda+ov on linux, but I haven't upgraded to the latest version yet.

@lu0se
Copy link

lu0se commented Nov 18, 2023

@lu0se Is there any issue? I use ort_cuda+ov on linux, but I haven't upgraded to the latest version yet.

I tried to compile it on Arch Linux,but it failed when I compile protobuf,could you provide your compilation scripts?

@WolframRhodium
Copy link
Contributor

WolframRhodium commented Nov 18, 2023

What's the error? I do not have a fixed script and compile it manually, based on the workflow file.

@lu0se
Copy link

lu0se commented Nov 18, 2023

when i compile openvivo,

/home/l/Code/openvino/thirdparty/ade/sources/ade/include/ade/typed_graph.hpp:101:10: 错误:‘uintptr_t’不是命名空间‘std’中的一个类型名
  101 |     std::uintptr_t m_srcGraph;
      |          ^~~~~~~~~

@WolframRhodium
Copy link
Contributor

While this is indeed a strange issue, we do not compile openvino with opencv support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants