From df5587dc511efad2346a43abf3f4160c3b89aa83 Mon Sep 17 00:00:00 2001 From: houj04 <35131887+houj04@users.noreply.github.com> Date: Fri, 23 Dec 2022 10:18:18 +0800 Subject: [PATCH] [XPU] fix exception in xpu executor (#49250) --- .../framework/details/bind_threaded_ssa_graph_executor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/framework/details/bind_threaded_ssa_graph_executor.cc b/paddle/fluid/framework/details/bind_threaded_ssa_graph_executor.cc index cdb96eb8eff..aa31a556c92 100644 --- a/paddle/fluid/framework/details/bind_threaded_ssa_graph_executor.cc +++ b/paddle/fluid/framework/details/bind_threaded_ssa_graph_executor.cc @@ -274,8 +274,8 @@ void BindThreadedSSAGraphExecutor::RunMultiDeviceOpAsync( } } catch (...) { error_state = 1; - ready_ops->Push(nullptr); exception_.Catch(std::current_exception()); + ready_ops->Push(nullptr); } { std::lock_guard lock(mutex_); @@ -308,8 +308,8 @@ void BindThreadedSSAGraphExecutor::RunOpAsyncMainStream( } } catch (...) { error_state = 1; - ready_ops->Push(nullptr); exception_.Catch(std::current_exception()); + ready_ops->Push(nullptr); } { std::lock_guard lock(mutex_); -- GitLab