Poor Inference performance on Ampere card
Description
Trying to perform real-time inference of video using an SSD model, getting 65-70ms inference time per frame compared to 20ms on Geforce RTX 2080.
Environment
TensorRT Version: 7.2.2.3 NVIDIA GPU: GeForce RTX 3070 Mobile / Max-Q NVIDIA Driver Version: 460.39 CUDA Version: 11.2/11.1 CUDNN Version: 8.0.5 Operating System: Ubuntu 20.10 Python Version (if applicable): Tensorflow Version (if applicable): PyTorch Version (if applicable): Baremetal or Container (if so, version):
Relevant Files
Steps To Reproduce
I tried to run the official python samples for SSD with a video stream. same code on RTX 2080 works 3 times faster.
Hello @Okoyl , thanks for reporting!
I need the build log and layer perf log on both chips.
To dump the build log, could you enable verbose log by changing https://github.com/NVIDIA/TensorRT/blob/master/samples/python/uff_ssd/utils/inference.py#L43
TRT_LOGGER = trt.Logger(trt.Logger.VERBOSE)
after updating code, need run the script again, redirect the output to a file. We need the engine build information in this output file.
After this step, there is an local saved engine in directory like workspace/engines/HALF/engine_bs_1.buf . Next we need a per layer perf dump, you can run with trtexec using command line
trtexec --loadEngine=workspace/engines/HALF/engine_bs_1.buf --dumpProfile --separateProfileRun
, also redirect the output to a log file.
Finally, could you tell me the detail model information of your laptop? (Different OEMs have different TDP). Thanks!
Closing since no activity in this thread for more than 3 weeks, please reopen if you still have question, thanks!