Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
naoyam committed Aug 31, 2024
1 parent dee29ef commit 30d3db5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions csrc/device_lower/analysis/sync_information.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ SyncMap::SyncMap(Fusion* fusion) {
producer->getLogicalDomain(), {p_id})
.empty()) {
raw_dims.set(producer_ptype);
continue;
}
}

Expand Down Expand Up @@ -684,8 +685,8 @@ SyncMap::SyncMap(Fusion* fusion) {
consumer->toString());
}

if (GpuLower::current()->hasIdModel()) {
if (producer_ptype == consumer_ptype) {
if (producer_ptype == consumer_ptype) {
if (GpuLower::current()->hasIdModel()) {
const auto& id_model = GpuLower::current()->idModel();
auto producer_loop_id =
indexing_utils::getLoopPromotion(p_id, id_model);
Expand All @@ -697,11 +698,10 @@ SyncMap::SyncMap(Fusion* fusion) {
producer_loop_id, consumer_loop_id)) {
continue;
}
}
} else {
if (producer_ptype == consumer_ptype &&
useSameIndex(producer, p_id, consumer, c_id, indexing_info)) {
continue;
} else {
if (useSameIndex(producer, p_id, consumer, c_id, indexing_info)) {
continue;
}
}
}

Expand Down

0 comments on commit 30d3db5

Please sign in to comment.