It takes me a lot of time to get TensorRT working with Ubuntu 20.04 on my laptop.
There are some issues makes it even harder @@
1.With the default nVidia driver from Ubuntu 20.04, the laptop failed to resume after suspend (hibernate).
The solution is to reinstall older version. This lead cuda version limited to 10.2
sudo apt install nvidia-driver-450-server