You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TRTEngine::~TRTEngine()
{
cudaStreamSynchronize(_stream);
cudaStreamDestroy(_stream);
if (_context)
delete _context;
if (_engine)
delete _engine;
if (_runtime)
delete _runtime;
}
The problem is that a segmentation fault is raised in the destructor when trying to delete _engine. I have also tried with smart pointers or reordering the declaration/deletion of the objects but the problem still remains. What may cause this?
Environment
TensorRT Version: 10.0
NVIDIA GPU: RTX 3060
NVIDIA Driver Version: 535.161.07
CUDA Version: 11.8
CUDNN Version: 8.9.6
Operating System: Ubuntu 22.04
Baremetal or Container (if so, version): nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04 with TensorRT installed later
The text was updated successfully, but these errors were encountered:
Description
I have defined a class
TRTEngine
with the necessary runtime, engine and context as member variables as follows:where these variables are initialized in the constructor as follows:
and the destructor is defined as follows:
The problem is that a segmentation fault is raised in the destructor when trying to delete
_engine
. I have also tried with smart pointers or reordering the declaration/deletion of the objects but the problem still remains. What may cause this?Environment
TensorRT Version: 10.0
NVIDIA GPU: RTX 3060
NVIDIA Driver Version: 535.161.07
CUDA Version: 11.8
CUDNN Version: 8.9.6
Operating System: Ubuntu 22.04
Baremetal or Container (if so, version): nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04 with TensorRT installed later
The text was updated successfully, but these errors were encountered: