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

Commit 4fca803

Browse files
author
Sven Verdoolaege
committed
MappedScop::reductionMapSchedule: fix sanity check
The check, introduced by 88764d3 (split out reduction band after thread mapping to remove nested mapping, Mon Apr 9 17:43:18 2018 +0200), is off by one.
1 parent e8d5082 commit 4fca803

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
@@ -300,7 +300,7 @@ isl::multi_union_pw_aff MappedScop::reductionMapSchedule(
300300
auto nMember = reductionBand->nMember();
301301
auto reductionDim = reductionBand->nOuterCoincident();
302302
auto nMappedThreads = numThreads.view.size();
303-
TC_CHECK_GE(nMember, reductionDim);
303+
TC_CHECK_GE(nMember, reductionDim + 1);
304304
reductionSchedule = reductionSchedule.drop_dims(
305305
isl::dim_type::set, reductionDim + 1, nMember - (reductionDim + 1));
306306
reductionSchedule = reductionSchedule.drop_dims(

0 commit comments

Comments
 (0)