inducer / pycuda

CUDA integration for Python, plus shiny features
http://mathema.tician.de/software/pycuda
Other
1.85k stars 288 forks source link

Unstable delay when running on GPU T4 #416

Closed xaiocaibi closed 1 year ago

xaiocaibi commented 1 year ago

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: nvidia

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: mem

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.