Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 59767b6

Browse files
author
Sven Verdoolaege
committed
MappedScop::findBestSync: use templated isl types
1 parent 2c509e4 commit 59767b6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tc/core/polyhedral/cuda/mapped_scop.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,15 +554,15 @@ isl::MultiUnionPwAff<Statement, Block> MappedScop::blockMappingSchedule(
554554
Scop::SyncLevel MappedScop::findBestSync(
555555
ScheduleTree* st1,
556556
ScheduleTree* st2,
557-
isl::multi_union_pw_aff domainToThread,
558-
isl::multi_union_pw_aff domainToWarp) {
557+
isl::MultiUnionPwAff<Statement, Thread> domainToThread,
558+
isl::MultiUnionPwAff<Statement, Warp> domainToWarp) {
559559
// Active points in the two schedule trees
560560
auto stRoot = scop_->scheduleRoot();
561561
auto activePoints1 = activeDomainPointsBelow(stRoot, st1);
562562
auto activePoints2 = activeDomainPointsBelow(stRoot, st2);
563563

564564
// The dependences between the two schedule trees
565-
isl::union_map dependences = scop_->dependences;
565+
auto dependences = scop_->dependences;
566566
dependences = dependences.intersect_domain(activePoints1);
567567
dependences = dependences.intersect_range(activePoints2);
568568
if (dependences.is_empty()) {

tc/core/polyhedral/cuda/mapped_scop.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ class MappedScop {
188188
Scop::SyncLevel findBestSync(
189189
detail::ScheduleTree* st1,
190190
detail::ScheduleTree* st2,
191-
isl::multi_union_pw_aff domainToThread,
192-
isl::multi_union_pw_aff domainToWarp);
191+
isl::MultiUnionPwAff<Statement, Thread> domainToThread,
192+
isl::MultiUnionPwAff<Statement, Warp> domainToWarp);
193193

194194
public:
195195
// Find best configuration of synchronizations in a sequence, minimizing

0 commit comments

Comments
 (0)