I referenced clinfo, I paste it also blow just in case. OK, I found the kernel module may not have been loaded in this image. If my understanding is correct, OpenCL 2.1 is installed in the linux image I’m using on Hikey970. (9) /home/shunya/repos/tvm/build/libtvm_runtime.so(tvm::runtime::Module::LoadFromFile(std::_cxx11::basic_string, std::allocator > const&, std::_cxx11::basic_string, std::allocator > const&)+0x3b0) (7) /home/shunya/repos/tvm/build/libtvm_runtime.so(tvm::runtime::ImportModuleBlob(char const*, std::vector >*)+0x780) ![]() (6) /home/shunya/repos/tvm/build/libtvm_runtime.so(+0x9a3fc) (5) /home/shunya/repos/tvm/build/libtvm_runtime.so(tvm::runtime::OpenCLModuleLoadBinary(void*)+0x208) (4) /home/shunya/repos/tvm/build/libtvm_runtime.so(tvm::runtime::OpenCLModuleCreate(std::_cxx11::basic_string, std::allocator >, std::_cxx11::basic_string, std::allocator >, std::unordered_map, std::allocator >, tvm::runtime::FunctionInfo, std::hash, std::allocator >, std::equal_to, std::allocator >, std::allocator, std::allocator > const, tvm::runtime::FunctionInfo>, std::_cxx11::basic_string, std::allocator >)+0x27c) (3) /home/shunya/repos/tvm/build/libtvm_runtime.so(tvm::runtime::OpenCLModuleNode::Init()+0x134) (2) /home/shunya/repos/tvm/build/libtvm_runtime.so(tvm::runtime::cl::OpenCLWorkspace::Init(std::_cxx11::basic_string, std::allocator > const&, std::_cxx11::basic_string, std::allocator > const&, std::_cxx11::basic_string, std::allocator > const&)+0x224) (1) /home/shunya/repos/tvm/build/libtvm_runtime.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x30) (0) /home/shunya/repos/tvm/build/libtvm_runtime.so(dmlc::StackTrace()+0x104) ![]() Tvm._: /home/shunya/repos/tvm/src/runtime/opencl/opencl_device_api.cc:269: Check failed: err_code = CL_SUCCESS OpenCL Error, code=-6: CL_OUT_OF_HOST_MEMORY Tvm._: Except caught from RPC call: TVMCall CFunc Error:įile "/home/shunya/repos/tvm/python/tvm/_ffi/_ctypes/function.py", line 55, in cfunįile "/home/shunya/repos/tvm/python/tvm/rpc/server.py", line 50, in load_moduleįile "/home/shunya/repos/tvm/python/tvm/module.py", line 225, in loadįile "/home/shunya/repos/tvm/python/tvm/_ffi/_ctypes/function.py", line 185, in _call_įile "/home/shunya/repos/tvm/python/tvm/_ffi/base.py", line 66, in check_call ![]() Raise TVMError(py_str(_LIB.TVMGetLastError())) Return base._LoadRemoteModule(self._sess, path)įile "/Users/yamada/tk-home/workspace/tvm/tvm/python/tvm/_ffi/function.py", line 280, in my_api_funcįile "/Users/yamada/tk-home/workspace/tvm/tvm/python/tvm/_ffi/_ctypes/function.py", line 184, in _call_Ĭref(ret_val), ref(ret_tcode)))įile "/Users/yamada/tk-home/workspace/tvm/tvm/python/tvm/_ffi/base.py", line 66, in check_call Users/yamada/tk-home/workspace/tvm/tvm/src/codegen/opt/build_opencl_off.cc:16: OpenCL runtime not enabled, return a source module.įile "tvm_deploy_multiple_targets.py", line 129, in įile "tvm_deploy_multiple_targets.py", line 88, in run_openclįile "/Users/yamada/tk-home/workspace/tvm/tvm/python/tvm/rpc/client.py", line 119, in load_module Yamada … workspace tvm resnet python tvm_deploy_multiple_targets.py -t hikey970 -cl home/shunya/repos/tvm/src/runtime/opencl/opencl_device_api.cc:255: Initialize OpenCL platform 'ARM Platform'įailed creating base context during opening of kernel driver. In the experiments, local CPU (macOS) and remote CPU (aarch64) worked, however the remote CPU with OpenCL hanged up with the following error message. I tried to execute simple workload on Hikey970 with OpenCL (Mali-G72 MP12) throughout RPC, just referencing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |