HearyShen / gitalk-comments

gitalk-comments
https://heary.cn
2 stars 0 forks source link

PyTorch CUDA进程在Flask debug模式下死锁原因推测 | Heary's Blog #104

Open HearyShen opened 5 years ago

HearyShen commented 5 years ago

https://heary.cn/posts/PyTorch-CUDA%E8%BF%9B%E7%A8%8B%E5%9C%A8Flask-debug%E6%A8%A1%E5%BC%8F%E4%B8%8B%E6%AD%BB%E9%94%81%E5%8E%9F%E5%9B%A0%E6%8E%A8%E6%B5%8B/

基于Flask部署的PyTorch模型HTTP API在debug模式下偶现死锁问题,无法被kill掉,reboot或shutdown无法正常重启,nvidia-smi无法调出。初步推测可能与debug模式下创建的两套进程有关。