未验证 提交 a5999d83 编写于 作者: R Ruibiao Chen 提交者: GitHub

Set WaiterType of kGpuSync to kCPU (#48758)

上级 c8497414
...@@ -356,7 +356,8 @@ void StreamAnalyzer::ShrinkEventInfo( ...@@ -356,7 +356,8 @@ void StreamAnalyzer::ShrinkEventInfo(
platform::DeviceType StreamAnalyzer::GetWaiterType( platform::DeviceType StreamAnalyzer::GetWaiterType(
const Instruction& instr) const { const Instruction& instr) const {
if (instr.KernelType() == OpFuncType::kCpuSync) { if (instr.KernelType() == OpFuncType::kCpuSync ||
instr.KernelType() == OpFuncType::kGpuSync) {
return platform::kCPU; return platform::kCPU;
} else { } else {
if (platform::is_xpu_place(place_)) { if (platform::is_xpu_place(place_)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册