Skip to content

Commit

Permalink
Move host-compute-offloading wrapping after SPMD sharding to shard ca…
Browse files Browse the repository at this point in the history
…lls executed on host

PiperOrigin-RevId: 635998816
  • Loading branch information
ezhulenev authored and tensorflower-gardener committed May 22, 2024
1 parent 4bc3f5a commit 6dd6123
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion third_party/xla/xla/service/spmd/spmd_partitioner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2283,9 +2283,11 @@ Status SpmdPartitioningVisitor::HandleCall(HloInstruction* hlo) {
call_graph_)
.status());
SetPartitionedHlo(hlo, [&] {
return b_.AddInstruction(HloInstruction::CreateCall(
auto* call = b_.AddInstruction(HloInstruction::CreateCall(
MakePartitionedShape(hlo->shape(), hlo->sharding()), call_args,
hlo->called_computations()[0]));
call->set_raw_backend_config_string(hlo->raw_backend_config_string());
return call;
});
return OkStatus();
}
Expand Down

0 comments on commit 6dd6123

Please sign in to comment.