tvm-mali
tvm-mali copied to clipboard
Does TVM support RK3288?
Hi, I saw you do the benchmark test on RK3399. RK3288 has a Mali-T764 GPU. We tried it but the opencl has some problem recognizing the GPU. Do you have idea if TVM supports RK3288?
rk3288 is similar to rk3399, so tvm supports it. There maybe some problems in your environment configuration, like opencl driver, tvm build option.
Could you post your error message?
Here is the error message
python -m tvm.exec.rpc_server --host 0.0.0.0 --port=9090 INFO:root:RPCServer: bind to 0.0.0.0:9090 INFO:root:RPCServer: connection from ('192.168.7.48', 33508) INFO:root:Connection from ('192.168.7.48', 33508) [01:12:39] src/runtime/rpc/rpc_server_env.cc:23: Upload /tmp/tmpSITYtx/net.tar... nbytes=421284 [01:12:54] src/runtime/opencl/opencl_device_api.cc:197: Initialize OpenCL platform 'ARM Platform' ERROR: The DDK is not compatible with any of the Mali GPUs on the system. The DDK was built for 0x750 r0p0 status range [1..1], but none of the GPUs matched: /dev/mali0 detected as 0x750 r1p0 status 0 [01:12:54] src/runtime/opencl/opencl_device_api.cc:202: No OpenCL device any device matched given the options: gpu mode [01:12:54] src/runtime/opencl/opencl_device_api.cc:203: Now try OpenCL cpu mode ERROR: The DDK is not compatible with any of the Mali GPUs on the system. The DDK was built for 0x750 r0p0 status range [1..1], but none of the GPUs matched: /dev/mali0 detected as 0x750 r1p0 status 0 [01:12:54] src/runtime/opencl/opencl_device_api.cc:206: No OpenCL device any device matched given the options: cpu mode [01:12:54] src/runtime/rpc/rpc_session.cc:751: Shutdown... INFO:root:Finish serving ('192.168.7.48', 33508)****
“make USE_OPENCL=1 LLVM_CONFIG=llvm-config-4.0 -j4”
It seems the problem is your opencl driver, not the tvm runtime.
When I run the test on RK3288, I get the error message:
Traceback (most recent call last):
File "mali_imagenet_bench.py", line 109, in
Stack trace returned 10 entries:
[bt] (0) /home/firefly/.local/lib/python2.7/site-packages/tvm-0.2.0-py2.7-linux-armv7l.egg/tvm/libtvm.so(dmlc::StackTraceabi:cxx11+0x37) [0xb5c9fa4c]
[bt] (1) /home/firefly/.local/lib/python2.7/site-packages/tvm-0.2.0-py2.7-linux-armv7l.egg/tvm/libtvm.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x21) [0xb5ca011a]
[bt] (2) /home/firefly/.local/lib/python2.7/site-packages/tvm-0.2.0-py2.7-linux-armv7l.egg/tvm/libtvm.so(tvm::runtime::GraphRuntime::SetupStorage()+0x50f) [0xb5f601c0]
[bt] (3) /home/firefly/.local/lib/python2.7/site-packages/tvm-0.2.0-py2.7-linux-armv7l.egg/tvm/libtvm.so(tvm::runtime::GraphRuntimeCreate(std::__cxx11::basic_string<char, std::char_traits
@merrymercy Could you give some help ?
cc @tqchen
Please use the latest nnvm along with latest tvm