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

Commit 594be20

Browse files
author
Sven Verdoolaege
committed
drop threadIdxXScheduleDepthState
It has been completely replaced by thread specific markers.
1 parent 7110310 commit 594be20

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

tc/core/polyhedral/cuda/mapped_scop.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,6 @@ void MappedScop::mapRemaining(detail::ScheduleTree* tree, size_t nMapped) {
124124
auto filter = makeFixRemainingZeroFilter(domain, ids);
125125
auto mapping = detail::ScheduleTree::makeMappingFilter(filter, ids);
126126
insertNodeAbove(root, tree, std::move(mapping));
127-
128-
for (size_t i = nMapped; i < nToMap; ++i) {
129-
if (MappingTypeId::makeId(i) == mapping::ThreadId::x()) {
130-
threadIdxXScheduleDepthState.emplace_back(std::make_pair(
131-
activeDomainPoints(schedule(), tree),
132-
tree->scheduleDepth(schedule())));
133-
}
134-
}
135127
}
136128

137129
// Uses as many blockSizes elements as outer coincident dimensions in the
@@ -374,11 +366,6 @@ size_t MappedScop::mapToThreads(detail::ScheduleTree* band) {
374366
for (size_t i = 0; i < nMappedThreads; ++i) {
375367
auto id = mapping::ThreadId::makeId(i);
376368
auto dim = nMappedThreads - 1 - i;
377-
if (id == mapping::ThreadId::x()) {
378-
threadIdxXScheduleDepthState.emplace_back(std::make_pair(
379-
activeDomainPoints(schedule(), band),
380-
band->scheduleDepth(schedule()) + dim));
381-
}
382369
band = map(band, dim, id);
383370
}
384371
mapRemaining<mapping::ThreadId>(band, nMappedThreads);

tc/core/polyhedral/cuda/mapped_scop.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,6 @@ class MappedScop {
178178
const ::tc::Block numThreads;
179179
const uint64_t unroll;
180180

181-
// The schedule depth that was mapped to Thread::x for specific parts of the
182-
// domain.
183-
// XXX: this is a partially redundant state as this information can
184-
// potentially be extracted from the schedule tree; however, until we get a
185-
// first-class MappingNode, it requires some dirty hacks.
186-
ThreadIdxXScheduleDepthState threadIdxXScheduleDepthState;
187-
188181
private:
189182
// Information about a detected reduction that can potentially
190183
// be mapped to a library call.

tc/core/polyhedral/cuda/memory_promotion_heuristic.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222

2323
namespace tc {
2424
namespace polyhedral {
25-
using ThreadIdxXScheduleDepthState =
26-
std::vector<std::pair<isl::union_set, size_t>>;
27-
2825
class MappedScop;
2926
class Scop;
3027

0 commit comments

Comments
 (0)