Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eedalong committed May 23, 2024
1 parent 6613d88 commit fae9fd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tao_compiler/mlir/disc/transforms/disc_op_schedule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class ScheduleGraph {
explicit ScheduleGraph(std::vector<Operation*>& post_order_instructions,
LatencyEstimator* latency_estimator,
AsyncTracker* async_tracker) {
InitilizeGrpahTopology(post_order_instructions, latency_estimator,
InitilizeGraphTopology(post_order_instructions, latency_estimator,
async_tracker);
InitializeGraphAnalysis(latency_estimator, async_tracker);
}
Expand Down Expand Up @@ -497,7 +497,7 @@ class ScheduleGraph {
}
}

void InitilizeGrpahTopology(std::vector<Operation*>& post_order_instructions,
void InitilizeGraphTopology(std::vector<Operation*>& post_order_instructions,
LatencyEstimator* latency_estimator,
AsyncTracker* async_tracker) {
original_order_ = post_order_instructions;
Expand Down
6 changes: 4 additions & 2 deletions tao_compiler/mlir/disc/transforms/lhlo_legalize_roots_to_loops.cc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5712,9 +5712,11 @@ struct DiscLhloLegalizeRootsToParallelLoops
// TODO: We should put even single nodes into a fusion by fusion pass
// Revisit this and walk lmhlo::FusionOp only after the revision done.
func.walk([&](lmhlo::LmhloOp op) {
// Skip the embedded ops in lmhlo.fusion or lmhlo.reduce/scatter
// Skip the embedded ops in lmhlo.fusion or lmhlo.reduce/scatter or
// lmhlo_disc.args_mutation
lmhlo::LmhloOp parent = op->getParentOfType<lmhlo::LmhloOp>();
if (parent && !isa<lmhlo::FusionOp>(op)) {
if (isa<lmhlo_disc::ArgsMutationOp>(op) ||
parent && !isa<lmhlo::FusionOp>(op)) {
return;
}
if (isFusionType<FusionType::kStitch>(op) &&
Expand Down

0 comments on commit fae9fd7

Please sign in to comment.