You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/08/06 20:00:24 UTC

[GitHub] [tvm] ArmageddonKnight commented on a change in pull request #8678: [Target] Add __launch_bounds__ directive as part of the CUDA code generation

ArmageddonKnight commented on a change in pull request #8678:
URL: https://github.com/apache/tvm/pull/8678#discussion_r684474908



##########
File path: src/target/source/codegen_cuda.cc
##########
@@ -46,6 +48,42 @@ void CodeGenCUDA::Init(bool output_ssa) {
 
 void CodeGenCUDA::PrintFuncPrefix() { stream << "extern \"C\" __global__ void"; }
 
+class threadIdxExtractor : public tir::StmtVisitor {
+ private:
+  void VisitStmt_(const AttrStmtNode* op) final {
+    if (op->attr_key == tir::attr::thread_extent) {
+      IterVar iv = Downcast<IterVar>(op->node);
+      LOG(INFO) << iv->var->name_hint;

Review comment:
       Removed.




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org