Giter Club home page Giter Club logo

bifrost's People

Contributors

stjerngren avatar wheest avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

wheest

bifrost's Issues

Fix flop estimator

tvm.autotvm.task.task.FlopCalculationError: Only support te.compute currently. Other ops like tvm.te.scan/te.extern is not supported

Fix not found bug

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.

Cycle path

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

Tuning bug: Tuning SIGMA_SPRASE_DENSE on Alexnet error

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

Cost function BUG

For some reason the architecture overwrites itself when tuning over and over. Why???

Add tests

  • Basic convolutions with random variable
  • Basic tuning task

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.