提交 b6ca3711 编写于 作者: Y Yu Yang

Get error

上级 55e2cc3d
...@@ -33,6 +33,9 @@ std::string OpHandleBase::DebugString() const { ...@@ -33,6 +33,9 @@ std::string OpHandleBase::DebugString() const {
OpHandleBase::~OpHandleBase() { OpHandleBase::~OpHandleBase() {
#ifdef PADDLE_WITH_CUDA #ifdef PADDLE_WITH_CUDA
for (auto &ctx : dev_ctx_) {
ctx.second->Wait();
}
for (auto &ev : events_) { for (auto &ev : events_) {
PADDLE_ENFORCE(cudaEventDestroy(ev.second)); PADDLE_ENFORCE(cudaEventDestroy(ev.second));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册