Hello,
I have a problem concerning the samples in the sdkmanager.
After I installed the sdkmanger successfully I wanted to run some deep-learning-samples. But when doing so there appeared an error:
" TensorRT Library mismatch, expected version 4.0.1.6 got version 4.0.3"
(the TensorRT version 4.0.3 was delivered and installed with the sdkmanager) So I cannot run the samples which need tensorrt and now I also get the error when i want to import tensorrt in python.
I tried:
uninstalled tensorrt 4.0.1.6
then when i want to import tensorrt, it couldn’t be found
reinstalled tensorrt 4.0.1.6
same error “TensorRT Library mismatch…”
I also wanted to try uninstall tensorrt 4.0.3 but this wasn’t possible because there was no location found where it could be installed.
Thus I cannot use tensorrt on my computer right now and also the samples from the sdkmanger don’t work!
Now i don’t know what to do next, maybe you can help me.
Thank you a lot!
Dear hendrik.vogt,
sdkmanager installs TRT at /usr/local/cuda/dl. The host TRT samples are at /usr/local/cuda/dl/target/x86_64-linux-gnu/samples. The tensorRT samples in this location can be compiled on host using the provided make file and works out of the box.
If you install another TRT version, please set the paths correctly to choose your required TRT path.
ii graphsurgeon-tf 4.1.2-1+cuda8.0 amd64 GraphSurgeon for TensorRT package
ii libnvinfer-dev 4.1.2-1+cuda8.0 amd64 TensorRT development libraries and headers
ii libnvinfer-samples 4.1.2-1+cuda8.0 amd64 TensorRT samples and documentation
ii libnvinfer4 4.1.2-1+cuda8.0 amd64 TensorRT runtime libraries
ii python-libnvinfer 4.1.2-1+cuda8.0 amd64 Python bindings for TensorRT
ii python-libnvinfer-dev 4.1.2-1+cuda8.0 amd64 Python development package for TensorRT
ii tensorrt 4.0.1.6-1+cuda8.0 amd64 Meta package of TensorRT
ii uff-converter-tf 4.1.2-1+cuda8.0 amd64 UFF converter for TensorRT package
which shows technically, that I do not have 4.0.3 version installed on my machine … so I don’t understand why do I receive this mismatch
Deat HV_ZF,
Could you confirm you are trying to run tensorRT C++ sample and encountered this error? or you are trying to use python API library and encountered this? It is confusing what deep-learning-samples you are referring in the post. Also, could you please check for available tensorRT files/libraries using locate command instead of dpkg. It is good idea to check library dependencies for your executable using ldd.
I installed the sdkmanager to run some deep learning samples (which are delivered with and integrated in the sdkmanager) and some of the samples did not work because of the problem with the tensorrt version, like I mentioned above.
So what I do next was to try to import tensorRT in a simple python script, just to verify tensorRT is working, as it was before installing the sdkmanager. But then I received the mentioned problem(tensorrt 4.0.1.6 vs 4.0.3).
So I am not able to run the samples from the sdkmanager and I am also not able to use tensorrt in general in python on my computer, because of the same error.
Dear HV_ZF,
As I understand you are trying to access tensorRT Python. Have you installed tensorRT python API using whl file provided at /usr/local/cuda-10.0/dl/python folder? If not can you please do that and link correct libraries in LD_LIBRARY_PATH before importing tensorRT in python window