Add pthread_detach()'s for threads we never pthread_join(). Helps

reduce diagnostic noise for ThreadSanitizer.

Fixes https://github.com/NVIDIA/nccl/issues/649


[ROCm/rccl commit: 44eb40da0e]
This commit is contained in:
John Bachan
2022-03-14 17:09:08 -07:00
rodzic f8886d8687
commit 7707479804
3 zmienionych plików z 3 dodań i 0 usunięć
+1
Wyświetl plik
@@ -1073,6 +1073,7 @@ ncclResult_t ncclProxyInit(struct ncclComm* comm, struct ncclSocket* sock, union
}
ncclResult_t ncclProxyCreate(struct ncclComm* comm) {
// comm->proxyState.thread is pthread_join()'d by commFree() in init.cc
pthread_create(&comm->proxyState.thread, NULL, ncclProxyService, comm);
return ncclSuccess;
}