提交 35a90e06 编写于 作者: D Dun Liang

test=develop

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