Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APU] Add MTK APU backend #3407

Merged

Conversation

hong19860320
Copy link
Collaborator

@hong19860320 hong19860320 commented Apr 14, 2020

新增MTK MT8175 APU的支持,目前仅支持全量化MobileNetv1模型。

遗留问题
动态加载libneuron_adapter.so的相关文件存在大量冗余代码,建议仿照lite/backends/opencl/cl_wrapper.h和lite/opencl/cl_wrapper.cc,在/lite/backends/apu目录下实现neuron_wrapper.h和neuron_wrapper.cc。
或采用如下方案:PaddleLite+APU编译时链接到libneuron_adapter.so,但libneuron_adapter.so内部通过dlopen的方式加载其它库,这样就能避免cmake/device/apu.cmake设置更多系统库的依赖了

Copy link
Collaborator

@DannyIsFunny DannyIsFunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

lite/backends/apu/CMakeLists.txt Show resolved Hide resolved
lite/kernels/apu/bridges/CMakeLists.txt Show resolved Hide resolved
lite/api/opt.cc Show resolved Hide resolved
@hong19860320 hong19860320 merged commit 355d080 into PaddlePaddle:develop Apr 15, 2020
@hong19860320 hong19860320 deleted the hongming/mtk_apu_backend branch April 15, 2020 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants