Skip to content

cpu memory leak when change batch with setDeviceMemory #2290

@qq332982511

Description

@qq332982511

Description

cpu memory leak when change batch with setDeviceMemory

Environment

TensorRT Version: 7.2.2.3
NVIDIA GPU: T4
NVIDIA Driver Version: 470.57.02
CUDA Version: 11.4
CUDNN Version: 8.2.1
Operating System: Ubuntu 18.04.5
Python Version (if applicable):
Tensorflow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if so, version):

Relevant Files

lQLPJxakk_93mvjNAbrNBjCwlu0y_K9jWT8DDrYJ8wBuAA_1584_442

image

Steps To Reproduce

instance context with createExecutionContextWithoutDeviceMemory
call setDeviceMemory to set pointer when batch changed
asan and tcmalloc show that setDeviceMemory -> cudnnCreatePoolingDescriptor lead to memory leak

Metadata

Metadata

Assignees

Labels

triagedIssue has been triaged by maintainers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions