From b5d6e38b051b3427889fb1a5412b9551ddefcd64 Mon Sep 17 00:00:00 2001 From: peizhilin Date: Mon, 25 Feb 2019 19:26:35 +0800 Subject: [PATCH 1/2] fix build issue for cudaEvent_t test=develop --- paddle/fluid/platform/event.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paddle/fluid/platform/event.h b/paddle/fluid/platform/event.h index a4db23758b..5e52ccfbfb 100644 --- a/paddle/fluid/platform/event.h +++ b/paddle/fluid/platform/event.h @@ -14,6 +14,9 @@ limitations under the License. */ #pragma once #include +#ifdef PADDLE_WITH_CUDA +#include "paddle/fluid/platform/gpu_info.h" +#endif namespace paddle { namespace platform { From c6472579c0b17c20f8818c37d8b258bf1fef66c8 Mon Sep 17 00:00:00 2001 From: peizhilin Date: Mon, 25 Feb 2019 19:33:14 +0800 Subject: [PATCH 2/2] test=develop --- paddle/fluid/platform/event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/platform/event.h b/paddle/fluid/platform/event.h index 5e52ccfbfb..2dcf966754 100644 --- a/paddle/fluid/platform/event.h +++ b/paddle/fluid/platform/event.h @@ -15,7 +15,7 @@ limitations under the License. */ #pragma once #include #ifdef PADDLE_WITH_CUDA -#include "paddle/fluid/platform/gpu_info.h" +#include #endif namespace paddle {