merrymercy commented on a change in pull request #6194:
URL: https://github.com/apache/incubator-tvm/pull/6194#discussion_r464592534
##########
File path: src/tir/analysis/verify_gpu_code.cc
##########
@@ -134,25 +138,28 @@ class GPUCodeVerifier : public StmtExprVisitor {
}
}
+ void VisitStmt_(const ForNode* op) {
+ if (op->loop_var->name_hint == "vthread.s") {
Review comment:
@jcf94 It is necessary. The pragma will be translated to a for loop in
the InjectiveVirturalThread pass. Adding this check makes the verification work
both before and after InjectVirtualThread pass.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]