Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion xla/service/gpu/gpu_latency_hiding_scheduler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ bool IsNopInstruction(const HloInstruction& hlo) {
return op == HloOpcode::kGetTupleElement || op == HloOpcode::kBitcast ||
op == HloOpcode::kConstant || op == HloOpcode::kParameter ||
op == HloOpcode::kTuple || op == HloOpcode::kPartitionId ||
op == HloOpcode::kReplicaId || hlo.IsEffectiveBitcast();
op == HloOpcode::kReplicaId || hlo.IsEffectiveBitcast() ||
op == HloOpcode::kOptimizationBarrier;
}

bool IsAsyncComputeOp(const HloInstruction& hlo) {
Expand Down
3 changes: 2 additions & 1 deletion xla/service/gpu/gpu_latency_hiding_scheduler_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ TEST_F(GpuLatencyHidingSchedulerBaseTest,
partition-id0 = u32[] partition-id()
replica-id0 = u32[] replica-id()
tuple0 = (f32[], f32[2,16], u32[], u32[]) tuple(parameter0, bitcast0, partition-id0, replica-id0)
ROOT _ = get-tuple-element(tuple0), index=0
opt-barrier = (f32[], f32[2,16], u32[], u32[]) opt-barrier(tuple0)
ROOT _ = get-tuple-element(opt-barrier), index=0
}
)";

Expand Down