d-smirnov commented on pull request #7832:
URL: https://github.com/apache/tvm/pull/7832#issuecomment-819884348


   Mine is:
   
   > >ulimit -s
   > 8192
   
   And it fails with around 200'000 stack frames in case of the unit test for
   me.
   
   --
   Dmitriy Smirnov
   
   
   On Wed, 14 Apr 2021 at 21:22, Robert Kimball ***@***.***>
   wrote:
   
   > ***@***.**** commented on this pull request.
   > ------------------------------
   >
   > In tests/cpp/relay_dismantler_test.cc
   > <https://github.com/apache/tvm/pull/7832#discussion_r613561822>:
   >
   > > +#include <tvm/runtime/packed_func.h>
   > +#include <tvm/runtime/registry.h>
   > +#include <tvm/te/operation.h>
   > +#include <tvm/topi/broadcast.h>
   > +#include <tvm/topi/generic/injective.h>
   > +
   > +using namespace tvm;
   > +using namespace tvm::relay;
   > +
   > +TEST(Relay, OutOfStack) {
   > +  auto foo = [] {
   > +    auto add_op = relay::Op::Get("add");
   > +    auto c_data = tvm::runtime::NDArray::Empty({1, 2, 3}, {kDLFloat, 32, 
1}, {kDLCPU, 0});
   > +    auto c1 = relay::Constant(c_data);
   > +    Call y1 = relay::Call(add_op, {c1, c1});
   > +    for (int i = 0; i < 16'384; i++) {
   >
   > I was using ubuntu 20.04. I do have 64G RAM but I don't think that changes
   > the stack size. When I type ulimit -s to print the stack size I see
   > 8182K. What do you see?
   >
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/tvm/pull/7832#discussion_r613561822>, or
   > unsubscribe
   > 
<https://github.com/notifications/unsubscribe-auth/AGADO35QEDRNXHYLCK4YAJDTIX2RNANCNFSM42ZXVWQA>
   > .
   >
   


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


Reply via email to