diff --git a/paddle/fluid/platform/device_context.cc b/paddle/fluid/platform/device_context.cc index e319b395365e5fe4dc4e446ed89ff9ab860794e3..39be9f716d2ab91ac3bd76a56c209c737ad62260 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_; }