From 1c7bb0e40cacd10bfa210b2b922c18207d59f541 Mon Sep 17 00:00:00 2001 From: Dun Liang Date: Thu, 21 Feb 2019 16:43:24 +0800 Subject: [PATCH] test=develop --- paddle/fluid/platform/profiler.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paddle/fluid/platform/profiler.cc b/paddle/fluid/platform/profiler.cc index 436654d10..9617d91b7 100644 --- a/paddle/fluid/platform/profiler.cc +++ b/paddle/fluid/platform/profiler.cc @@ -112,12 +112,10 @@ double Event::CpuElapsedMs(const Event& e) const { } double Event::CudaElapsedMs(const Event& e) const { -#ifdef PADDLE_WITH_CUDA #ifdef PADDLE_WITH_CUPTI return gpu_ns_ / 1000000.0; #endif -#else - PADDLE_THROW("CUDA is not enabled"); + PADDLE_THROW("CUDA CUPTI is not enabled"); #endif } -- GitLab