Skip to content

Commit f994f4e

Browse files
committed
revert unused changes
1 parent 767c515 commit f994f4e

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

csrc/scheduler/registry.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ bool checkCanSchedule(Fusion* fusion, SchedulerType scheduler_type) {
5858
return false;
5959
}
6060

61+
// TODO: check PreprocessGroupedMatmulInputSf's output is in global memory / fusion output
62+
6163
// Fusions with `MatmulOp, LinearOp, MmaOp` can only be accepted by Matmul
6264
// scheduler.
6365
if (scheduler_type != SchedulerType::Matmul &&
@@ -72,6 +74,7 @@ bool checkCanSchedule(Fusion* fusion, SchedulerType scheduler_type) {
7274
scheduler_type, "Connected fusion graph check failed!");
7375
return false;
7476
}
77+
7578
if (IterDomainGraph(fusion, /*allow_self_mapping=*/true).hasSelfMapping()) {
7679
scheduler_debug_utils::canScheduleRejectReason(
7780
scheduler_type, "Iter domain graph check failed!");

csrc/scheduler/tools/domain_map.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,6 @@ getIndexedConsumerToProducerMap(Fusion* fusion, const ComputeAtMap& ca_map) {
107107
return indexed_id_map;
108108
}
109109

110-
std::vector<IterDomain*> getSchedulingIds(TensorView* tv) {
111-
// if (tv->isDefinitionType<PreprocessGroupedMatmulInputSf>() &&
112-
// (tv->definition()->as<PreprocessGroupedMatmulInputSf>()->inputOffsets() == tv ||
113-
// tv->definition()->as<PreprocessGroupedMatmulInputSf>()->outputOffsets() == tv)) {
114-
// return tv->getMaybeRootDomain();
115-
// }
116-
return tv->getLogicalDomain();
117-
}
118-
119110
} // namespace
120111

121112
DomainMap::DomainMap(Fusion* fusion) : fusion_(fusion), ca_map_(fusion) {
@@ -145,7 +136,7 @@ bool DomainMap::areAllInputIdsMappedTo(TensorView* input_tv, TensorView* tv)
145136
// Erase all input concrete IDs mapped to the output domain
146137
// Ignore unresolved broadcast dimensions
147138
eraseifInputMappedThroughRootDomainAndIndexing(
148-
in_concrete_ids, getSchedulingIds(tv));
139+
in_concrete_ids, tv->getMaybeLogicalDomain());
149140

150141
return in_concrete_ids.empty();
151142
}
@@ -224,7 +215,7 @@ bool DomainMap::areAllTargetIdsCoveredBy(
224215
// it's safe for target_tv to have them.
225216
std::unordered_set<IterDomain*> covered_source_ids;
226217
for (IterDomain* source_id_ref :
227-
get_source_iter_domains(getSchedulingIds(reference_tv))) {
218+
get_source_iter_domains(reference_tv->getMaybeLogicalDomain())) {
228219
covered_source_ids.insert(source_id_ref);
229220
}
230221
// It's safe to have unmapped broadcast IterDomain. There're quite a few tests

0 commit comments

Comments
 (0)