Replies: 1 comment
-
Maybe try using a memory pool? Memory allocations, particularly repeated ones, are quite expensive on GPUs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
When I use pycuda to execute the compiled trt model, there will be regular delay glitches in the program. When locating the problem, it was found that the location where the delay became high was applying for memory. Our guess is that the machine is performing certain tasks on a regular basis to cause this problem.
When nvidia-smi is executed while stress testing, it is found that the delay is unstable. Can you help me with a question?
The figure below is the phenomenon of time delay:
When executing the nvida-smi command:
I'm sure this problem is caused by executing the nvidia-smi command, when I remove nvidia-smi, the delay returns to normal.
But this problem still needs to be solved. Can you help me with a question?
Code with latency fluctuations:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions