Skip to content

Commit bcc9c87

Browse files
committed
fix: fix typos
1 parent f6d2cc7 commit bcc9c87

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

src/layout/gemm_layouts.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ Layout makeGemmVoltaABLayout(int stride, int continuous, bool is_a,
588588

589589
// ref:
590590
// https://github.com/nvidia/cutlass/blob/ad7b2f5e84fcfa124cb02b91d5bd26d238c0459e/include/cutlass/layout/tensor_op_multiplicand_sm75.h#L54
591-
// Althought the four settings (T or NT) used distinct layouts in CUTLASS, they
591+
// Although the four settings (T or NT) used distinct layouts in CUTLASS, they
592592
// appeared to result in the same mem layout
593593
Layout makeTensorOpMultiplicand(int mat_stride, int mat_continuous,
594594
int elementsize, int crosswise) {

src/op/parallel.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ LayoutMap ParallelOpNode::InferLayout(const LayoutInferArgs &T,
215215
return {};
216216
if (level == InferLevel::kStrict) {
217217
LayoutMap results;
218-
// Deduce buffers that shoule be complicated replicated.
218+
// Deduce buffers that should be complicated replicated.
219219
// For example:
220-
// for i in T.Parllel(m):
220+
// for i in T.Parallel(m):
221221
// fragment[0] = x[i]
222222
// then fragment[0] must be replicated on all threads.
223223
for (const auto &[buffer, indices] : indice_map_) {

src/target/codegen_cuda.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2088,7 +2088,7 @@ void CodeGenTileLangCUDA::VisitExpr_(const BufferLoadNode *op,
20882088
DataType element_dtype = op->buffer->dtype;
20892089

20902090
int lanes = op->dtype.lanes();
2091-
// delcare type.
2091+
// declare type.
20922092
if (value_dtype.lanes() == element_dtype.lanes()) {
20932093
std::string ref = GetBufferRef(op->dtype, op->buffer.get(), index);
20942094
HandleVolatileLoads(ref, op, os);

src/target/ptx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ std::string PrintArriveBarrierAsm(const std::string &barrier);
150150
* \brief Print ptx barrier arrival with expect tx operation using
151151
* mbarrier.arrive.expect_tx \param barrier: The name of the barrier in shared
152152
* memory. \param byte_count: Increases the tx count of the mbarrier object to
153-
* track completion of addtional async transactions.
153+
* track completion of additional async transactions.
154154
*/
155155
std::string PrintArriveBarrierExpectTxAsm(const std::string &barrier,
156156
const std::string &byte_count);

src/transform/inject_assumes.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class AssumeInjector : public tvm::tir::StmtExprMutator {
3333
};
3434
tvm::StructuralHash sh;
3535
tvm::StructuralEqual se;
36-
// grouped by expr, since the amount of varidic shape symbols is usualy much
37-
// smaller than buffer
36+
// grouped by expr, since the amount of variadic shape symbols is usually
37+
// much smaller than buffer
3838
std::vector<Item> items;
3939
// hash => index in items
4040
std::unordered_map<size_t, std::vector<size_t>> buckets;

src/transform/loop_vectorize_dynamic.cc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ class VectorizedBodyMutator : public StmtExprMutator {
243243
std::vector<PrimExpr> conditions_;
244244
};
245245

246-
class VectorizedConditionExtracter : public StmtExprVisitor {
246+
class VectorizedConditionExtractor : public StmtExprVisitor {
247247
public:
248-
VectorizedConditionExtracter() = default;
248+
VectorizedConditionExtractor() = default;
249249
std::vector<PrimExpr> GetConditions(const Stmt &body) {
250250
this->VisitStmt(body);
251251
return conditions_;
@@ -268,6 +268,9 @@ class VectorizedConditionExtracter : public StmtExprVisitor {
268268
std::vector<PrimExpr> conditions_;
269269
};
270270

271+
// backward-compatibility: extracter -> extractor
272+
using VectorizedConditionExtracter = VectorizedConditionExtractor;
273+
271274
class NestedLoopChecker : public StmtExprVisitor {
272275
public:
273276
NestedLoopChecker() : loop_num_(0) {}
@@ -391,8 +394,8 @@ class VectorizeRewriterDynamic : public StmtExprMutator {
391394
vmap.Set(fnode->loop_var, outer_var * vector_size_ + inner_var);
392395
Stmt body = Substitute(fnode->body, vmap);
393396

394-
VectorizedConditionExtracter extracter;
395-
std::vector<PrimExpr> conditions = extracter.GetConditions(body);
397+
VectorizedConditionExtractor extractor;
398+
std::vector<PrimExpr> conditions = extractor.GetConditions(body);
396399

397400
VectorizedConditionMutator condition_mutator(inner_var, vector_size_);
398401

0 commit comments

Comments
 (0)