[TensorRT] ERROR: 2: [ltWrapper.cpp::setupHeuristic::327]


[TensorRT] WARNING: Detected invalid timing cache, setup a local cache instead
[TensorRT] ERROR: 2: [ltWrapper.cpp::setupHeuristic::327] Error Code 2: Internal Error (Assertion cublasStatus == CUBLAS_STATUS_SUCCESS failed.)

Encounter this error using TensorRT-
This error not happening in TensorRT-

I suspect because cuda-10.2 cause this error. After apply the patch 1 and 2 this error still happen.
I want to deploy the model to Nvidia Drive AGX, so have to use cuda 10.2.

Any idea how to solve this problem?


TensorRT Version:
GPU Type:
Nvidia Driver Version:
CUDA Version:
CUDNN Version:
Operating System + Version:
Python Version (if applicable):
TensorFlow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):

Relevant Files

Please attach or include links to any models, data, files, or scripts necessary to reproduce your issue. (Github repo, Google Drive, Dropbox, etc.)

Steps To Reproduce

Please include:

  • Exact steps/commands to build your repro
  • Exact steps/commands to run your repro
  • Full traceback of errors encountered
1 Like

Please refer to the installation steps from the below link if in case you are missing on anything
Also, we suggest you to use TRT NGC containers to avoid any system dependency related issues.


Hi, I also encountered this problem. I reinstall the trt as instructed and install patches, but it didn’t work.
Environment: CUDA10.2 + CUDNN8.2.1 + TENSORRT-8.0.16

[TensorRT] ERROR: 2: [ltWrapper.cpp::setupHeuristic::327] Error Code 2: Internal Error (Assertion cublasStatus == CUBLAS_STATUS_SUCCESS failed.)
1 Like

I installed two patch for CUDA10.2 , but this issue are not fixed
Environment: CUDA10.2 + CUDNN8.3.1 + TENSORRT-

1 Like

facing the same problem and using the same environment