When I import tensorrt in python, I got importerror

When I run “import tensorrt”, I got ImportError: libnvdla_compiler.so: cannot open shared object file: No such file or directory
And I found that I did not have /usr/lib/aarch64-linux-gnu/tegra/. Where I can got this file, with tensorrt version 8.5.2.2?

Hi,

Which OS branch are you using?
Do you use r35.3.1 from JetPack 5.1.1?

Thanks.

I think it is r34.1.1. But I am not sure how to check the version of OS branch XD.

Hi,

You can check it with the following command:

$ cat /etc/nv_tegra_release

The library can be found on r35.3.1 release:

$ sudo find / -iname libnvdla_compiler.so
...
/usr/lib/aarch64-linux-gnu/tegra/libnvdla_compiler.so

Thanks.

Thank you for your reply. I think it is due to the installation issue. I gave ip python and turn to C++ XD. But I met another problem, I found there is no nvidia-smi in orin. So how can I monitor the GPU in orin?

Hi,

nvidia-smi is a discrete GPU tool (the desktop GPU).
On Jetson, you can check the system status with tegrastats.

$ sudo tegrastats

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.