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

Commit 249b314

Browse files
author
Sven Verdoolaege
committed
makeWithOuterBlockInnerThreadStrategy: reuse fixThreadsBelow
Conceptually, this call performs the same operation as the call to fixThreadsBelow in mapInnermostBandsToThreads, so it makes sens to use the same function. Note that fixThreadsBelow currently does essentially the same as mapRemaining, but some thread specific code will be added in an upcoming commit.
1 parent 19ea5c1 commit 249b314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tc/core/polyhedral/cuda/mapped_scop.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ std::unique_ptr<MappedScop> MappedScop::makeWithOuterBlockInnerThreadStrategy(
637637
auto child = outerBand->child({0});
638638
size_t numMappedInnerThreads =
639639
mappedScop->mapInnermostBandsToThreads(child);
640-
mappedScop->mapRemaining<mapping::ThreadId>(child, numMappedInnerThreads);
640+
fixThreadsBelow(*mappedScop, outerBand, numMappedInnerThreads);
641641
LOG_IF(INFO, FLAGS_debug_tc_mapper)
642642
<< "After mapping to threads:" << std::endl
643643
<< *mappedScop->schedule();

0 commit comments

Comments
 (0)