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

Commit 9da7a9c

Browse files
Merge pull request #321 from facebookresearch/pr/typo
fix typos
2 parents 7d79f6e + 5b67abd commit 9da7a9c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tc/core/polyhedral/cuda/memory_promotion_heuristic.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ size_t computeThreadIdxXScheduleDepth(
271271
*
272272
* In particular, check if incrementing the schedule dimension mapped to
273273
* Thread::x results in the last tensor index being incremented as well.
274-
* Since accesses in the group may belong to different statements, which are
274+
* Since accesses in the group may belong to different statements, which may
275275
* have different loops mapped to Thread::x, perform the check for each basic
276276
* map in the union of access maps taking into account which dimension is
277277
* mapped for a particular statement (domain of the basic map). The group is

tc/core/polyhedral/memory_promotion.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,14 +497,14 @@ ScheduleTree* insertCopiesUnder(
497497
isl::set::universe(promotionSpace.domain().unwrap().domain());
498498
auto arrayId =
499499
promotionSpace.domain().unwrap().get_tuple_id(isl::dim_type::out);
500-
auto approximattedRead =
500+
auto approximatedRead =
501501
isl::map(
502502
scheduleUniverse,
503503
group.approximateFootprint().set_tuple_id(arrayId).intersect(
504504
tensorElements))
505505
.wrap();
506-
approximattedRead = isl::map(approximattedRead, promotedFootprint).wrap();
507-
auto readExtension = extension.intersect_range(approximattedRead)
506+
approximatedRead = isl::map(approximatedRead, promotedFootprint).wrap();
507+
auto readExtension = extension.intersect_range(approximatedRead)
508508
.set_tuple_id(isl::dim_type::out, readId);
509509
auto writtenElements =
510510
isl::map(

tc/core/polyhedral/schedule_isl_conversion.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ bool refersToUndefinedParameters(
368368
return false;
369369
}
370370

371-
// If space uses some parameters that are not avaialbe in paramSpace,
371+
// If space uses some parameters that are not available in paramSpace,
372372
// they will be introduced into paramSpace, making its dimension larger.
373373
auto definedParams = paramSpace.dim(isl::dim_type::param);
374374
paramSpace = paramSpace.align_params(space);

0 commit comments

Comments
 (0)