From b5d6e38b051b3427889fb1a5412b9551ddefcd64 Mon Sep 17 00:00:00 2001 From: peizhilin Date: Mon, 25 Feb 2019 19:26:35 +0800 Subject: [PATCH] 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 a4db23758b1..5e52ccfbfbb 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 { -- GitLab