From c9080f516b3b3afffc97899ee03db469ce38d3db Mon Sep 17 00:00:00 2001 From: Dun Liang Date: Thu, 21 Feb 2019 16:44:33 +0800 Subject: [PATCH] test=develop --- paddle/fluid/platform/profiler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/platform/profiler.cc b/paddle/fluid/platform/profiler.cc index 9617d91b7..42a93ad76 100644 --- a/paddle/fluid/platform/profiler.cc +++ b/paddle/fluid/platform/profiler.cc @@ -114,7 +114,7 @@ double Event::CpuElapsedMs(const Event& e) const { double Event::CudaElapsedMs(const Event& e) const { #ifdef PADDLE_WITH_CUPTI return gpu_ns_ / 1000000.0; -#endif +#else PADDLE_THROW("CUDA CUPTI is not enabled"); #endif } -- GitLab