From 4b9cf0e8b116e28f20f46c407f7d3f675eca1424 Mon Sep 17 00:00:00 2001 From: Dong Zhihong Date: Wed, 25 Oct 2017 20:23:13 -0700 Subject: [PATCH] "add disable" --- paddle/operators/nccl/nccl_gpu_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/operators/nccl/nccl_gpu_common.h b/paddle/operators/nccl/nccl_gpu_common.h index fe49d19a9dd..eead7f79b75 100644 --- a/paddle/operators/nccl/nccl_gpu_common.h +++ b/paddle/operators/nccl/nccl_gpu_common.h @@ -25,6 +25,7 @@ #include "paddle/platform/device_context.h" #include "paddle/platform/dynload/nccl.h" #include "paddle/platform/enforce.h" +#include "paddle/platform/macros.h" namespace paddle { namespace platform { @@ -51,7 +52,7 @@ struct Communicator { } } - // DISABLE_COPY_AND_ASSIGN(Communicator); + DISABLE_COPY_AND_ASSIGN(Communicator); }; } // namespace platform -- GitLab