I’m wondering if it is possible to use the TensorRT C++ library (libnvinfer) by loading it at runtime with dlopen instead of linking at compile time. I need this because TensorRT would be an optional component loaded by the software on request.
As far as I know, the documentation doesn’t mention a way to do it. If possible, it would be nice to have some reference, examples or advice on how to do that!
In particular, do I necessarily need to create a wrapper library to access the class methods? Is there any straightforward way to use the TensorRT classes in my software without linking it?
TensorRT version: 18.104.22.168
OS: Ubuntu 16.04 LTS
Thank you in advance!