Fix a dead lock bug for dyload/nccl.h when nccl lib cannot be loaded (#5533)
It caused by a bug of std::call_once described in https://stackoverflow.com/questions/41717579/stdcall-once-hangs-on-second-call-after-callable-threw-on-first-call. It is likely caused by a deeper bug of pthread_once, which is discussed in https://patchwork.ozlabs.org/patch/482350/
Showing
paddle/platform/call_once.h
0 → 100644
想要评论请 注册 或 登录