RuntimeError: cuda runtime error (30)

created at 05-26-2022 views: 5

This is not the first time I have encountered this problem. I will record the solution here. Although it is very violent, it is easy to use. There should be other solutions. After the experiment is used, it will be supplemented.

an optional solution

This problem occurs because cuda has entered the sleep state, so the program runs incorrectly. The simple and direct solution is to restart the server to solve it perfectly.

created at:05-26-2022
edited at: 05-26-2022: