-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] tensorrt may randomly release imported resources before deallocate #2632
Comments
@pranavm-nvidia Not sure whether this is an issue in our python api. Can you take a look first? |
Because of how our bindings are implemented, you have to explicitly instantiate the base class in your trt.IGpuAllocator.__init__(self) I'll update the API docs to clarify this. |
I tried the method, the error still exists in my local machine. |
Since the bug sometimes is not easy to be triggered, you may try |
From my reading of the PR you linked, it sounds like |
At the end of the program, before |
Can you try making sure that any TRT objects you create (engine, context, etc.) are scoped? If they're in the global scope, then they might be freed after the |
closing since no activitity for more than 3 weeks, thanks! |
Description
After inheriting
tensort.IGpuAllocator
and overridedeallocate
function in a script. The resouces may get released randomly beforedeallocate
execution.Environment
TensorRT Version: 8.4.1.5
NVIDIA GPU: A100 or Geforce 1660
NVIDIA Driver Version: 470.103.01
CUDA Version: 11.3
CUDNN Version: corresponding to cuda 11.3
Operating System: ubuntu 18.04
Steps To Reproduce
here is the code implementation. And this is our work-around to fix it.
The text was updated successfully, but these errors were encountered: