From b7baeed7bb1f1e77aa3c0ce3114d4976a948c2d7 Mon Sep 17 00:00:00 2001 From: Wu Yi Date: Thu, 21 Mar 2019 13:46:56 +0800 Subject: [PATCH] fix win gpu build test=develop (#16334) --- paddle/fluid/platform/device_context.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paddle/fluid/platform/device_context.h b/paddle/fluid/platform/device_context.h index 19ce769ab32..9dbc72f561b 100644 --- a/paddle/fluid/platform/device_context.h +++ b/paddle/fluid/platform/device_context.h @@ -23,7 +23,9 @@ limitations under the License. */ #include "paddle/fluid/platform/cuda_helper.h" #include "paddle/fluid/platform/dynload/cublas.h" #include "paddle/fluid/platform/dynload/cudnn.h" +#if !defined(__APPLE__) && !defined(_WIN32) #include "paddle/fluid/platform/dynload/nccl.h" +#endif #include "paddle/fluid/platform/gpu_info.h" #endif -- GitLab