Skip to content

Commit

Permalink
Set WaiterType of kGpuSync to kCPU (PaddlePaddle#48758)
Browse files Browse the repository at this point in the history
  • Loading branch information
From00 authored Dec 8, 2022
1 parent 318e58a commit 5fa9f3c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ void StreamAnalyzer::ShrinkEventInfo(

platform::DeviceType StreamAnalyzer::GetWaiterType(
const Instruction& instr) const {
if (instr.KernelType() == OpFuncType::kCpuSync) {
if (instr.KernelType() == OpFuncType::kCpuSync ||
instr.KernelType() == OpFuncType::kGpuSync) {
return platform::kCPU;
} else {
if (platform::is_xpu_place(place_)) {
Expand Down

0 comments on commit 5fa9f3c

Please sign in to comment.