From 52654e23010cb3ea9476fc73a470d35c012e1f66 Mon Sep 17 00:00:00 2001 From: Arm Patinyasakdikul Date: Thu, 10 Apr 2025 10:44:16 -0500 Subject: [PATCH] Add device synchronization before destroying proxy thread. (#1631) This commit ensures that GPU finishes all kernel before destroying communicator thread. --- src/proxy.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/proxy.cc b/src/proxy.cc index 90f6a7568f..a0b86889ca 100644 --- a/src/proxy.cc +++ b/src/proxy.cc @@ -1702,6 +1702,7 @@ void* ncclProxyService(void* _args) { } // Wait for all operations to complete and stop progress thread before freeing any resource + hipDeviceSynchronize(); if (ncclProxyProgressDestroy(proxyState) != ncclSuccess) { WARN("[Proxy Service] proxyDestroy failed"); }