提交 1c7bb0e4 编写于 作者: D Dun Liang

test=develop

上级 a7e7d952
...@@ -112,12 +112,10 @@ double Event::CpuElapsedMs(const Event& e) const { ...@@ -112,12 +112,10 @@ double Event::CpuElapsedMs(const Event& e) const {
} }
double Event::CudaElapsedMs(const Event& e) const { double Event::CudaElapsedMs(const Event& e) const {
#ifdef PADDLE_WITH_CUDA
#ifdef PADDLE_WITH_CUPTI #ifdef PADDLE_WITH_CUPTI
return gpu_ns_ / 1000000.0; return gpu_ns_ / 1000000.0;
#endif #endif
#else PADDLE_THROW("CUDA CUPTI is not enabled");
PADDLE_THROW("CUDA is not enabled");
#endif #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册