zhy520xp / mace-makefile-project

makefile 交叉编译 libmace.a,并能在嵌入式端调用GPU来跑深度学习模型
95 stars 18 forks source link

Working on TinkerBoard Rockchip RK3288 Mali-T764 GPU #11

Open madhavajay opened 6 years ago

madhavajay commented 6 years ago

Hi, I got it working on: TinkerBoard Rockchip RK3288 Mali-T764 GPU

https://github.com/madhavajay/mace-makefile-project

zhy520xp commented 6 years ago

ok,thanks for testing

xmmxkk commented 5 years ago

@madhavajay @zhy520xp I build this project pass with rcar‘s toolchain ,but the static library libmace.a is about 200M,very huge. is it normal?? meanwhile , I found that the cl files in opencl dir were not shown in makefile , how could It can be called??

zhy520xp commented 5 years ago

(1).my libmace.a is about 12MB..... (2).cl files is written in source file(codegen/opencl/opencl_encrypt_program.cc).

xmmxkk commented 5 years ago

Thank you very much! @zhy520xp

madhavajay commented 5 years ago

Looks like official support is coming: https://github.com/XiaoMi/mace/issues/36

xmmxkk commented 5 years ago

W ../mace/core/runtime/opencl/opencl_runtime.cc:40] Set GPU configurations, gpu_perf_hint: 3, gpu_priority_hint: 3 =====>>>>>start to CreateMaceEngineFromProto I ../mace/core/mace.cc:337] Create MaceEngine from model pb I ../mace/core/mace.cc:135] Initializing MaceEngine W ../mace/core/runtime/opencl/opencl_wrapper.cc:283] Loading OpenCL from ./opencl_library/libOpenCL.so NOTE: This GSX library has the time limitation by reason of an evaluation module. W ../mace/core/runtime/opencl/opencl_runtime.cc:356] Using device: PowerVR Rogue GX6650 I ../mace/utils/tuner.h:129] There is no tuned parameters. W ../mace/core/runtime/opencl/opencl_runtime.cc:428] There is no precompiled OpenCL binary in all OpenCL binary paths =====>>>>>end to CreateMaceEngineFromProto =====>>>>>Warm up Run Model spend time:9590 ms =====>>>>>Normal Run Model spend time:41 ms

I ../mace/core/mace.cc:194] Destroying MaceEngine

with the huge libmace library ,the running result log of demo is what on above, looks like the framework of Mace is getting work , but the recogize result is null, some place are still wrong!

madhavajay commented 5 years ago

I am not sure I can help, since I don't know much about this stuff, but does your system have an libOpenCL.so file in its paths? Mine has:

 /usr/lib/arm-linux-gnueabihf/libOpenCL.so