Skip to content

Commit

Permalink
Set WaiterType of kGpuSync to kCPU (#48758)
Browse files Browse the repository at this point in the history
  • Loading branch information
From00 authored Dec 8, 2022
1 parent c849741 commit a5999d8
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 a5999d8

Please # to comment.