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 2022/01/25 13:59:03 UTC

[GitHub] [tvm] SebastianBoblestETAS commented on a change in pull request #9950: Make kMaxStackAlloca

SebastianBoblestETAS commented on a change in pull request #9950:
URL: https://github.com/apache/tvm/pull/9950#discussion_r791738823



##########
File path: src/tir/transforms/lower_tvm_builtin.cc
##########
@@ -127,7 +134,7 @@ class BuiltinLower : public StmtExprMutator {
         auto storage_scope = Downcast<PointerType>(op->buffer_var->type_annotation)->storage_scope;
         if (dev_type->value == kDLCPU && storage_scope == "global") {
           int32_t constant_size = op->constant_allocation_size();
-          if (constant_size > 0 && constant_size * nbytes < runtime::kMaxStackAlloca) {
+          if (constant_size > 0 && constant_size * nbytes < kMaxStackAlloca) {

Review comment:
       I changed the code accordingly




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