Skip to content

Commit 54a1c01

Browse files
ZixuanJiangGoogle-ML-Automation
authored andcommitted
Make SpmdPartitioningVisitor::HandleCustomCall_XYZ public -> private.
PiperOrigin-RevId: 874228307
1 parent 0db2886 commit 54a1c01

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

xla/service/spmd/spmd_partitioner.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -746,12 +746,6 @@ class SpmdPartitioningVisitor : public DfsHloVisitorWithDefault {
746746
// Common handle for HLOs that runs on a single device.
747747
absl::Status HandleSingleDevice(const HloInstruction* hlo);
748748

749-
// CustomCall handlers per call target.
750-
absl::Status HandleCustomCallTopK(HloInstruction* hlo);
751-
// Convenient custom ops defined by the partitioner itself.
752-
absl::Status HandleCustomCallSPMDInternal_RotateRight(HloInstruction* hlo);
753-
absl::Status HandleCustomCallSPMDInternal_MultiRotate(HloInstruction* hlo);
754-
755749
virtual std::unique_ptr<SpmdPartitioningVisitor> Clone() const;
756750

757751
// Returns the PartitionedHlo that corresponds to the original hlo.
@@ -906,6 +900,13 @@ class SpmdPartitioningVisitor : public DfsHloVisitorWithDefault {
906900
absl::Status HandleDUSAllPartitionedSliceDimsHaveConstantIndices(
907901
HloInstruction* hlo, const HloInstruction* input_tensor,
908902
const HloInstruction* update_tensor);
903+
904+
// Handlers for specific custom call targets.
905+
// go/keep-sorted start
906+
absl::Status HandleCustomCallSPMDInternal_MultiRotate(HloInstruction* hlo);
907+
absl::Status HandleCustomCallSPMDInternal_RotateRight(HloInstruction* hlo);
908+
absl::Status HandleCustomCallTopK(HloInstruction* hlo);
909+
// go/keep-sorted end
909910
};
910911

911912
} // namespace spmd

0 commit comments

Comments
 (0)