stjerngren / bifrost Goto Github PK
View Code? Open in Web Editor NEWA Python tool for the evaluation and optimisation of DNN accelerators powered by STONNE and TVM
License: MIT License
A Python tool for the evaluation and optimisation of DNN accelerators powered by STONNE and TVM
License: MIT License
tvm.autotvm.task.task.FlopCalculationError: Only support te.compute currently. Other ops like tvm.te.scan/te.extern is not supported
DEBUG:autotvm:No: 1 GFLOPS: 0.00/0.00 result: MeasureResult(costs=('Traceback (most recent call last):\n [bt] (8) 9 libtvm.dylib 0x0000000119f14c1c std::__1::__function::__func<tvm::runtime::RPCWrappedFunc::WrapRemoteReturnToValue(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const::$_0, std::__1::allocator<tvm::runtime::RPCWrappedFunc::WrapRemoteReturnToValue(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const::$_0>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 76\n [bt] (7) 8 libtvm.dylib 0x0000000119f14fd9 tvm::runtime::RPCWrappedFunc::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const + 873\n [bt] (6) 7 libtvm.dylib 0x0000000119f1072c tvm::runtime::RPCClientSession::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 124\n [bt] (5) 6 libtvm.dylib 0x0000000119f095f7 tvm::runtime::RPCEndpoint::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)>) + 327\n [bt] (4) 5 libtvm.dylib 0x0000000119f07ea2 tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 834\n [bt] (3) 4 libtvm.dylib 0x0000000119f080eb tvm::runtime::RPCEndpoint::EventHandler::HandleNextEvent(bool, bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 379\n [bt] (2) 3 libtvm.dylib 0x0000000119f0b476 tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void (tvm::runtime::TVMArgs)>) + 374\n [bt] (1) 2 libtvm.dylib 0x0000000119f0d291 tvm::runtime::RPCEndpoint::EventHandler::HandleReturn(tvm::runtime::RPCCode, std::__1::function<void (tvm::runtime::TVMArgs)>) + 209\n [bt] (0) 1 libtvm.dylib 0x00000001191b05ef dmlc::LogMessageFatal::~LogMessageFatal() + 111\n [bt] (8) 9 libtvm.dylib 0x000000011dcceea2 tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 834\n [bt] (7) 8 libtvm.dylib 0x000000011dccf0eb tvm::runtime::RPCEndpoint::EventHandler::HandleNextEvent(bool, bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 379\n [bt] (6) 7 libtvm.dylib 0x000000011dcd23ef tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void (tvm::runtime::TVMArgs)>) + 239\n [bt] (5) 6 libtvm.dylib 0x000000011dcd3ab9 tvm::runtime::RPCEndpoint::EventHandler::HandleNormalCallFunc() + 153\n [bt] (4) 5 libtvm.dylib 0x000000011dce25a3 tvm::runtime::RPCSession::AsyncCallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::RPCCode, tvm::runtime::TVMArgs)>) + 67\n [bt] (3) 4 libtvm.dylib 0x000000011dcd93be tvm::runtime::LocalSession::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 62\n [bt] (2) 3 libtvm.dylib 0x000000011dcdd610 std::__1::__function::__func<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1, std::__1::allocator<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 368\n [bt] (1) 2 libtvm.dylib 0x000000011dc98a36 std::__1::__function::__func<tvm::runtime::WrapPackedFunc(int ()(TVMValue, int*, int, TVMValue*, int*, void*), tvm::runtime::ObjectPtrtvm::runtime::Object const&)::$_0, std::__1::allocator<tvm::runtime::WrapPackedFunc(int ()(TVMValue, int*, int, TVMValue*, int*, void*), tvm::runtime::ObjectPtrtvm::runtime::Object const&)::$_0>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 262\n [bt] (0) 1 libtvm.dylib 0x000000011cf775ef dmlc::LogMessageFatal::~LogMessageFatal() + 111\n [bt] (8) 9 libtvm.dylib 0x000000011dcd23ef tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void (tvm::runtime::TVMArgs)>) + 239\n [bt] (7) 8 libtvm.dylib 0x000000011dcd3ab9 tvm::runtime::RPCEndpoint::EventHandler::HandleNormalCallFunc() + 153\n [bt] (6) 7 libtvm.dylib 0x000000011dce25a3 tvm::runtime::RPCSession::AsyncCallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::RPCCode, tvm::runtime::TVMArgs)>) + 67\n [bt] (5) 6 libtvm.dylib 0x000000011dcd93be tvm::runtime::LocalSession::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 62\n [bt] (4) 5 libtvm.dylib 0x000000011dcdd610 std::__1::__function::__func<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1, std::__1::allocator<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 368\n [bt] (3) 4 tmp_func_8c34e3c8efba3a66.tar.so 0x000000011101deac default_function + 1692\n [bt] (2) 3 libtvm.dylib 0x000000011dc8d694 TVMBackendGetFuncFromEnv + 164\n [bt] (1) 2 libtvm.dylib 0x000000011dc9f2ee tvm::runtime::ModuleNode::GetFuncFromEnv(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) + 766\n [bt] (0) 1 libtvm.dylib 0x000000011cf775ef dmlc::LogMessageFatal::~LogMessageFatal() + 111\n File "/Users/axelstjerngren/uni/Year 4/Project Level 4/tvm/src/runtime/module.cc", line 112\n File "/Users/axelstjerngren/uni/Year 4/Project Level 4/tvm/src/runtime/rpc/rpc_endpoint.cc", line 378\nRPCError: Error caught from RPC call:\n[18:45:11] /Users/axelstjerngren/uni/Year 4/Project Level 4/tvm/src/runtime/library_module.cc:78: Check failed: ret == 0 (-1 vs. 0) : TVMError: Check failed: f != nullptr: Cannot find function tvm.contrib.stonne.conv2d.forward in the imported modules or global registry\n',), error_no=7, all_cost=10, timestamp=1608054311.649239) [('ms_size', 8)],None,0
DEBUG:autotvm:No: 2 GFLOPS: 0.00/0.00 result: MeasureResult(costs=('Traceback (most recent call last):\n [bt] (8) 9 libtvm.dylib 0x0000000112582c1c std::__1::__function::__func<tvm::runtime::RPCWrappedFunc::WrapRemoteReturnToValue(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const::$_0, std::__1::allocator<tvm::runtime::RPCWrappedFunc::WrapRemoteReturnToValue(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const::$_0>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 76\n [bt] (7) 8 libtvm.dylib 0x0000000112582fd9 tvm::runtime::RPCWrappedFunc::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const + 873\n [bt] (6) 7 libtvm.dylib 0x000000011257e72c tvm::runtime::RPCClientSession::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 124\n [bt] (5) 6 libtvm.dylib 0x00000001125775f7 tvm::runtime::RPCEndpoint::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)>) + 327\n [bt] (4) 5 libtvm.dylib 0x0000000112575ea2 tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 834\n [bt] (3) 4 libtvm.dylib 0x00000001125760eb tvm::runtime::RPCEndpoint::EventHandler::HandleNextEvent(bool, bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 379\n [bt] (2) 3 libtvm.dylib 0x0000000112579476 tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void (tvm::runtime::TVMArgs)>) + 374\n [bt] (1) 2 libtvm.dylib 0x000000011257b291 tvm::runtime::RPCEndpoint::EventHandler::HandleReturn(tvm::runtime::RPCCode, std::__1::function<void (tvm::runtime::TVMArgs)>) + 209\n [bt] (0) 1 libtvm.dylib 0x000000011181e5ef dmlc::LogMessageFatal::~LogMessageFatal() + 111\n [bt] (8) 9 libtvm.dylib 0x000000011d996ea2 tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 834\n [bt] (7) 8 libtvm.dylib 0x000000011d9970eb tvm::runtime::RPCEndpoint::EventHandler::HandleNextEvent(bool, bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 379\n [bt] (6) 7 libtvm.dylib 0x000000011d99a3ef tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void (tvm::runtime::TVMArgs)>) + 239\n [bt] (5) 6 libtvm.dylib 0x000000011d99bab9 tvm::runtime::RPCEndpoint::EventHandler::HandleNormalCallFunc() + 153\n [bt] (4) 5 libtvm.dylib 0x000000011d9aa5a3 tvm::runtime::RPCSession::AsyncCallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::RPCCode, tvm::runtime::TVMArgs)>) + 67\n [bt] (3) 4 libtvm.dylib 0x000000011d9a13be tvm::runtime::LocalSession::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 62\n [bt] (2) 3 libtvm.dylib 0x000000011d9a5610 std::__1::__function::__func<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1, std::__1::allocator<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 368\n [bt] (1) 2 libtvm.dylib 0x000000011d960a36 std::__1::__function::__func<tvm::runtime::WrapPackedFunc(int ()(TVMValue, int*, int, TVMValue*, int*, void*), tvm::runtime::ObjectPtrtvm::runtime::Object const&)::$_0, std::__1::allocator<tvm::runtime::WrapPackedFunc(int ()(TVMValue, int*, int, TVMValue*, int*, void*), tvm::runtime::ObjectPtrtvm::runtime::Object const&)::$_0>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 262\n [bt] (0) 1 libtvm.dylib 0x000000011cc3f5ef dmlc::LogMessageFatal::~LogMessageFatal() + 111\n [bt] (8) 9 libtvm.dylib 0x000000011d99a3ef tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void (tvm::runtime::TVMArgs)>) + 239\n [bt] (7) 8 libtvm.dylib 0x000000011d99bab9 tvm::runtime::RPCEndpoint::EventHandler::HandleNormalCallFunc() + 153\n [bt] (6) 7 libtvm.dylib 0x000000011d9aa5a3 tvm::runtime::RPCSession::AsyncCallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::RPCCode, tvm::runtime::TVMArgs)>) + 67\n [bt] (5) 6 libtvm.dylib 0x000000011d9a13be tvm::runtime::LocalSession::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 62\n [bt] (4) 5 libtvm.dylib 0x000000011d9a5610 std::__1::__function::__func<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1, std::__1::allocator<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 368\n [bt] (3) 4 tmp_func_7373a99b219b5a6.tar.so 0x000000011c3c5eac default_function + 1692\n [bt] (2) 3 libtvm.dylib 0x000000011d955694 TVMBackendGetFuncFromEnv + 164\n [bt] (1) 2 libtvm.dylib 0x000000011d9672ee tvm::runtime::ModuleNode::GetFuncFromEnv(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) + 766\n [bt] (0) 1 libtvm.dylib 0x000000011cc3f5ef dmlc::LogMessageFatal::~LogMessageFatal() + 111\n File "/Users/axelstjerngren/uni/Year 4/Project Level 4/tvm/src/runtime/module.cc", line 112\n File "/Users/axelstjerngren/uni/Year 4/Project Level 4/tvm/src/runtime/rpc/rpc_endpoint.cc", line 378\nRPCError: Error caught from RPC call:\n[18:45:13] /Users/axelstjerngren/uni/Year 4/Project Level 4/tvm/src/runtime/library_module.cc:78: Check failed: ret == 0 (-1 vs. 0) : TVMError: Check failed: f != nullptr: Cannot find function tvm.contrib.stonne.conv2d.forward in the imported modules or global registry\n',), error_no=7, all_cost=10, timestamp=1608054313.1299279) [('ms_size', 16)],None,1
DEBUG:autotvm:No: 3 GFLOPS: 0.00/0.00 result: MeasureResult(costs=('Traceback (most recent call last):\n [bt] (8) 9 libtvm.dylib 0x0000000114394c1c std::__1::__function::__func<tvm::runtime::RPCWrappedFunc::WrapRemoteReturnToValue(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const::$_0, std::__1::allocator<tvm::runtime::RPCWrappedFunc::WrapRemoteReturnToValue(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const::$_0>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 76\n [bt] (7) 8 libtvm.dylib 0x0000000114394fd9 tvm::runtime::RPCWrappedFunc::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const + 873\n [bt] (6) 7 libtvm.dylib 0x000000011439072c tvm::runtime::RPCClientSession::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 124\n [bt] (5) 6 libtvm.dylib 0x00000001143895f7 tvm::runtime::RPCEndpoint::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)>) + 327\n [bt] (4) 5 libtvm.dylib 0x0000000114387ea2 tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 834\n [bt] (3) 4 libtvm.dylib 0x00000001143880eb tvm::runtime::RPCEndpoint::EventHandler::HandleNextEvent(bool, bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 379\n [bt] (2) 3 libtvm.dylib 0x000000011438b476 tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void (tvm::runtime::TVMArgs)>) + 374\n [bt] (1) 2 libtvm.dylib 0x000000011438d291 tvm::runtime::RPCEndpoint::EventHandler::HandleReturn(tvm::runtime::RPCCode, std::__1::function<void (tvm::runtime::TVMArgs)>) + 209\n [bt] (0) 1 libtvm.dylib 0x00000001136305ef dmlc::LogMessageFatal::~LogMessageFatal() + 111\n [bt] (8) 9 libtvm.dylib 0x0000000113543ea2 tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 834\n [bt] (7) 8 libtvm.dylib 0x00000001135440eb tvm::runtime::RPCEndpoint::EventHandler::HandleNextEvent(bool, bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 379\n [bt] (6) 7 libtvm.dylib 0x00000001135473ef tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void (tvm::runtime::TVMArgs)>) + 239\n [bt] (5) 6 libtvm.dylib 0x0000000113548ab9 tvm::runtime::RPCEndpoint::EventHandler::HandleNormalCallFunc() + 153\n [bt] (4) 5 libtvm.dylib 0x00000001135575a3 tvm::runtime::RPCSession::AsyncCallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::RPCCode, tvm::runtime::TVMArgs)>) + 67\n [bt] (3) 4 libtvm.dylib 0x000000011354e3be tvm::runtime::LocalSession::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 62\n [bt] (2) 3 libtvm.dylib 0x0000000113552610 std::__1::__function::__func<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1, std::__1::allocator<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 368\n [bt] (1) 2 libtvm.dylib 0x000000011350da36 std::__1::__function::__func<tvm::runtime::WrapPackedFunc(int ()(TVMValue, int*, int, TVMValue*, int*, void*), tvm::runtime::ObjectPtrtvm::runtime::Object const&)::$_0, std::__1::allocator<tvm::runtime::WrapPackedFunc(int ()(TVMValue, int*, int, TVMValue*, int*, void*), tvm::runtime::ObjectPtrtvm::runtime::Object const&)::$_0>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 262\n [bt] (0) 1 libtvm.dylib 0x00000001127ec5ef dmlc::LogMessageFatal::~LogMessageFatal() + 111\n [bt] (8) 9 libtvm.dylib 0x00000001135473ef tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void (tvm::runtime::TVMArgs)>) + 239\n [bt] (7) 8 libtvm.dylib 0x0000000113548ab9 tvm::runtime::RPCEndpoint::EventHandler::HandleNormalCallFunc() + 153\n [bt] (6) 7 libtvm.dylib 0x00000001135575a3 tvm::runtime::RPCSession::AsyncCallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::RPCCode, tvm::runtime::TVMArgs)>) + 67\n [bt] (5) 6 libtvm.dylib 0x000000011354e3be tvm::runtime::LocalSession::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 62\n [bt] (4) 5 libtvm.dylib 0x0000000113552610 std::__1::__function::__func<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1, std::__1::allocator<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 368\n [bt] (3) 4 tmp_func_50929a1a97da1b1d.tar.so 0x0000000106274eac default_function + 1692\n [bt] (2) 3 libtvm.dylib 0x0000000113502694 TVMBackendGetFuncFromEnv + 164\n [bt] (1) 2 libtvm.dylib 0x00000001135142ee tvm::runtime::ModuleNode::GetFuncFromEnv(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) + 766\n [bt] (0) 1 libtvm.dylib 0x00000001127ec5ef dmlc::LogMessageFatal::~LogMessageFatal() + 111\n File "/Users/axelstjerngren/uni/Year 4/Project Level 4/tvm/src/runtime/module.cc", line 112\n File "/Users/axelstjerngren/uni/Year 4/Project Level 4/tvm/src/runtime/rpc/rpc_endpoint.cc", line 378\nRPCError: Error caught from RPC call:\n[18:45:14] /Users/axelstjerngren/uni/Year 4/Project Level 4/tvm/src/runtime/library_module.cc:78: Check failed: ret == 0 (-1 vs. 0) : TVMError: Check failed: f != nullptr: Cannot find function tvm.contrib.stonne.conv2d.forward in the imported modules or global registry\n',), error_no=7, all_cost=10, timestamp=1608054314.524488) [('ms_size', 256)],None,2
DEBUG:autotvm:No: 4 GFLOPS: 0.00/0.00 result: MeasureResult(costs=('Traceback (most recent call last):\n [bt] (8) 9 libtvm.dylib 0x000000011a9d4c1c std::__1::__function::__func<tvm::runtime::RPCWrappedFunc::WrapRemoteReturnToValue(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const::$_0, std::__1::allocator<tvm::runtime::RPCWrappedFunc::WrapRemoteReturnToValue(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const::$_0>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 76\n [bt] (7) 8 libtvm.dylib 0x000000011a9d4fd9 tvm::runtime::RPCWrappedFunc::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const + 873\n [bt] (6) 7 libtvm.dylib 0x000000011a9d072c tvm::runtime::RPCClientSession::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 124\n [bt] (5) 6 libtvm.dylib 0x000000011a9c95f7 tvm::runtime::RPCEndpoint::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)>) + 327\n [bt] (4) 5 libtvm.dylib 0x000000011a9c7ea2 tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 834\n [bt] (3) 4 libtvm.dylib 0x000000011a9c80eb tvm::runtime::RPCEndpoint::EventHandler::HandleNextEvent(bool, bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 379\n [bt] (2) 3 libtvm.dylib 0x000000011a9cb476 tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void (tvm::runtime::TVMArgs)>) + 374\n [bt] (1) 2 libtvm.dylib 0x000000011a9cd291 tvm::runtime::RPCEndpoint::EventHandler::HandleReturn(tvm::runtime::RPCCode, std::__1::function<void (tvm::runtime::TVMArgs)>) + 209\n [bt] (0) 1 libtvm.dylib 0x0000000119c705ef dmlc::LogMessageFatal::~LogMessageFatal() + 111\n [bt] (8) 9 libtvm.dylib 0x00000001157deea2 tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 834\n [bt] (7) 8 libtvm.dylib 0x00000001157df0eb tvm::runtime::RPCEndpoint::EventHandler::HandleNextEvent(bool, bool, std::__1::function<void (tvm::runtime::TVMArgs)>) + 379\n [bt] (6) 7 libtvm.dylib 0x00000001157e23ef tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void (tvm::runtime::TVMArgs)>) + 239\n [bt] (5) 6 libtvm.dylib 0x00000001157e3ab9 tvm::runtime::RPCEndpoint::EventHandler::HandleNormalCallFunc() + 153\n [bt] (4) 5 libtvm.dylib 0x00000001157f25a3 tvm::runtime::RPCSession::AsyncCallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::RPCCode, tvm::runtime::TVMArgs)>) + 67\n [bt] (3) 4 libtvm.dylib 0x00000001157e93be tvm::runtime::LocalSession::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 62\n [bt] (2) 3 libtvm.dylib 0x00000001157ed610 std::__1::__function::__func<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1, std::__1::allocator<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 368\n [bt] (1) 2 libtvm.dylib 0x00000001157a8a36 std::__1::__function::__func<tvm::runtime::WrapPackedFunc(int ()(TVMValue, int*, int, TVMValue*, int*, void*), tvm::runtime::ObjectPtrtvm::runtime::Object const&)::$_0, std::__1::allocator<tvm::runtime::WrapPackedFunc(int ()(TVMValue, int*, int, TVMValue*, int*, void*), tvm::runtime::ObjectPtrtvm::runtime::Object const&)::$_0>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 262\n [bt] (0) 1 libtvm.dylib 0x0000000114a875ef dmlc::LogMessageFatal::~LogMessageFatal() + 111\n [bt] (8) 9 libtvm.dylib 0x00000001157e23ef tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void (tvm::runtime::TVMArgs)>) + 239\n [bt] (7) 8 libtvm.dylib 0x00000001157e3ab9 tvm::runtime::RPCEndpoint::EventHandler::HandleNormalCallFunc() + 153\n [bt] (6) 7 libtvm.dylib 0x00000001157f25a3 tvm::runtime::RPCSession::AsyncCallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::RPCCode, tvm::runtime::TVMArgs)>) + 67\n [bt] (5) 6 libtvm.dylib 0x00000001157e93be tvm::runtime::LocalSession::CallFunc(void*, TVMValue const*, int const*, int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 62\n [bt] (4) 5 libtvm.dylib 0x00000001157ed610 std::__1::__function::__func<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1, std::__1::allocator<tvm::runtime::WrapTimeEvaluator(tvm::runtime::PackedFunc, DLContext, int, int, int, tvm::runtime::PackedFunc)::$_1>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 368\n [bt] (3) 4 tmp_func_e8dd0f507a463899.tar.so 0x000000010f628eac default_function + 1692\n [bt] (2) 3 libtvm.dylib 0x000000011579d694 TVMBackendGetFuncFromEnv + 164\n [bt] (1) 2 libtvm.dylib 0x00000001157af2ee tvm::runtime::ModuleNode::GetFuncFromEnv(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) + 766\n [bt] (0) 1 libtvm.dylib 0x0000000114a875ef dmlc::LogMessageFatal::~LogMessageFatal() + 111\n File "/Users/axelstjerngren/uni/Year 4/Project Level 4/tvm/src/runtime/module.cc", line 112\n File "/Users/axelstjerngren/uni/Year 4/Project Level 4/tvm/src/runtime/rpc/rpc_endpoint.cc", line 378\nRPCError: Error caught from RPC call:\n[18:45:15] /Users/axelstjerngren/uni/Year 4/Project Level 4/tvm/src/runtime/library_module.cc:78: Check failed: ret == 0 (-1 vs. 0) : TVMError: Check failed: f != nullptr: Cannot find function tvm.contrib.stonne.conv2d.forward in the imported modules or global registry\n',), error_no=7, all_cost=10, timestamp=1608054315.986193) [('ms_size', 1024)],None,3
WARNING:root:Could not find any valid schedule for task Task(func_name=conv2d_stonne_nchw.x86, args=(('TENSOR', (1, 2, 10, 10), 'float32'), ('TENSOR', (2, 2, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'float32'), kwargs={}, workload=('conv2d_stonne_nchw.x86', ('TENSOR', (1, 2, 10, 10), 'float32'), ('TENSOR', (2, 2, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'float32')). A file containing the errors has been written to /var/folders/50/sjh2lq7s3f39bmytsqym6lmr0000gn/T/tvm_tuning_errors_fbazsjox.log.
Currently a file to record the cycles when running a model is stored in a json file. This json file is created at import of Bifrost at
current_working_directory/cycle.json
This is an inelegant solution which works fine as long you only run one instance of Bifrost at once. Running a model several time also simply appends to the file which also is not ideal.
Add a way to specify a file wherever you want. One way would be a utils module.
from bifrost.utils import cycle_name
# where cycle_name would be something like
def cycle_name(filename:str, path:str=[])
# Figure this part out. You need to make the file accessible in bifrost/tuner/stonne_builder/
# In run_stonne_through_rpc for the costs path. You also need to make it accessible in the .ccp files
This is bad, should probably be fixed asap. I imagine it is because of the relative paths
Needed for proper tile tuning
Create a directory for the tutorials as well. User Jupyter notebooks to visualise.
For some reason, when tuning SIGMA_SPRASE_DENSE on Alexnet it is not able to find valid conv2d_stonne_nchw.x86 schedules after the first tuning value has been tested. This is not the case for smaller models where the tuning works fine. This might be caused by a STONNE memory leak or some other AutoTVM factor I have not considered
will make it easier in case I add more ops
For some reason the architecture overwrites itself when tuning over and over. Why???
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.