cuCtxDestroy causing system freeze and black screen

Hello everyone,

I’m encountering a problem with the cuCtxDestroy function that seems to be causing my system to freeze and result in a black screen. I’m running Windows 11 on my computer, and I would appreciate any assistance in troubleshooting this issue.

When I call cuCtxDestroy, it takes more than 10 seconds to complete, during which both the GPU and CPU appear to be stuck. Eventually, the screen goes black, and in some cases, the system may recover, while in other cases, it requires a system reboot.

Here is some information about my system:

  • Integrated Intel graphics card
  • NVIDIA GeForce GTX 1650
  • Driver Version: 546.65
  • CUDA Version: 12.3
  • Windows 11

It also happens on ffmpeg: