[TRT] [W] CUDA initialization failure with error: 35 Segmentation fault (core dumped)

Description

I run the following code:

import tensorrt as tr
trt_runtime = trt.Runtime(trt.Logger(trt.Logger.WARNING))

Error:
[TRT] [W] CUDA initialization failure with error: 35
Segmentation fault (core dumped)

Environment

TensorRT Version: 8.6.1
CUDA driver from nvidia-smi: 11.7
CUDA compiler from nvcc --version: 12.1
Driver Version: 515.76
GPU compute capability: 6.1
Operating System + Version: Ubuntu 20.04.4 LTS

Hi,

It appears there is an issue in your CUDA setup.
Could you please uninstall CUDA and correctly reinstall only one version?

Also, please note that generally, CUDA 12.x needs a driver version greater than 525.60.
If you plan to install CUDA 12, please upgrade the driver version.

Thank you.