diff --git a/paddle/fluid/platform/device_context.cc b/paddle/fluid/platform/device_context.cc index e319b39536..39be9f716d 100644 --- a/paddle/fluid/platform/device_context.cc +++ b/paddle/fluid/platform/device_context.cc @@ -287,11 +287,6 @@ CUDADeviceContext::~CUDADeviceContext() { SetDeviceId(place_.device); Wait(); WaitStreamCallback(); -#if defined(PADDLE_WITH_NCCL) - if (nccl_comm_) { - PADDLE_ENFORCE_CUDA_SUCCESS(dynload::ncclCommDestroy(nccl_comm_)); - } -#endif } Place CUDADeviceContext::GetPlace() const { return place_; }