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

DLR Library (libdlr.so) could not be loaded #232

Closed
vizero1 opened this issue Aug 27, 2020 · 1 comment
Closed

DLR Library (libdlr.so) could not be loaded #232

vizero1 opened this issue Aug 27, 2020 · 1 comment

Comments

@vizero1
Copy link

vizero1 commented Aug 27, 2020

Hardware: Jetson Nano
DLR version: 1.2

Hi,
when I compile nowadays a model with sagemaker neo I get following error:

Aug 27 08:29:05 darkknight 
neo[13481]: [File : run.py, Function : main, Line : 142] ERROR: DLR library (libdlr.so) could not be loaded.
Likely causes:
* OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libgomp.so for UNIX-like OSes)
* You are running 32-bit Python on a 64-bit OS
Error message(s): libnvinfer.so.5: cannot open shared object file: No such file or directory

On my host system I am using dlr 1.2 (build from source) and I think Sagemaker Neo is using a newer version because in my new model tar file I can find following new files:

  • dlr.h
  • libdlr.so

I dont have a problem to run on my host older models without dlr.h and libdlr.so
If I remove the 2 mentioned files in my new compiled models the error doesnt occur and it runs successfully.
Is it somehow possible to force sagemaker neo to not include the files or use an older version? Do you have any other ideas how to solve it?
Thanks in advance!

@vizero1
Copy link
Author

vizero1 commented Sep 18, 2020

Resolved.
Can set a flag to ignore the libdlr.so which is bundled with the model.
model = dlr.DLRModel(‘path/to/compiled/model/’, dev_type=’gpu’, use_default_dlr=True)

@vizero1 vizero1 closed this as completed Sep 18, 2020
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

1 participant