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

PaddleLite V2.10 编译鸿蒙报错 #10488

Open
litonghui opened this issue Apr 2, 2024 · 5 comments
Open

PaddleLite V2.10 编译鸿蒙报错 #10488

litonghui opened this issue Apr 2, 2024 · 5 comments
Assignees

Comments

@litonghui
Copy link

  • 版本、环境信息:
       1)Paddle Lite 版本:请提供您的 Paddle Lite 版本号(如v2.10)或 CommitID
    版本v2.10,CommitID b427cac
       2)Host 环境:请描述 Host 系统类型、OS 版本,如 Mac OS 10.14、Ubuntu 18.04
    Ubuntu 20.04,参考 OpenHarmony-SIG / tpc_c_cplusplus 可以成功编译Paddle-Llite 2.12 ,模型加载时候报错,同时验证 2.12 Android 版本模型加载也失败
    RuntimeProgram:316] Check failed: op: Error: This model is not supported, because operator 'feed' is not supported by Paddle-Lite.
    考虑CommitID b427cac 提交可能没有合入v2.12 ,尝试编译线上版本模型对应PaddleLite v2.10 commit id b427cac 出现编译报错问题。

  • 编译方式
    准备编译环境,在thirdparty 重新拷贝一份Paddle-Lite 改名字Paddle-Lite-2.10
    cd/tpc_c_cplusplus/thirdparty
    cp -r Paddle-Lite Paddle-Lite-2.10
    替换 HPKBUILD
    替换 Paddle-Lite_oh_pkg.patch
    拷贝 cp -r github/Paddle-Lite-v2.10.zip .
    计算 sha512sum Paddle-Lite-v2.10.zip ,修改 SHA512SUM 里面内容
    开始编译:
    ./build.sh Paddle-Lite-2.10

  • 信息

  1. patch
    Paddle-Lite_oh_pkg.patch
  2. hpkbuild
    HPKBUILD.zip
  3. 日志信息
    build.log
@wz1qqx
Copy link
Collaborator

wz1qqx commented Apr 2, 2024

麻烦提供下模型,paddle 模型应该不会有 feed 算子

@litonghui
Copy link
Author

以提供,辛苦

@wz1qqx
Copy link
Collaborator

wz1qqx commented Apr 7, 2024

以提供,辛苦

v2.10版本过老,建议更新到 v2.13再试试

@litonghui
Copy link
Author

litonghui commented Apr 8, 2024

不是不用新版本,是新版本用不起来......,如下是v2.13rc 运行log,与2.12 一样的错,opt 用github 最新的转模型。

2024-04-08 14:36:33.577 24631-24631 Paddle-Lite com.hui.var.virtual I [I 4/ 8 14:36:33.577 ...and/Paddle-Lite/lite/core/device_info.cc:1331 Setup] SVE2 f32mm support: 0
2024-04-08 14:36:33.577 24631-24631 Paddle-Lite com.hui.var.virtual I [I 4/ 8 14:36:33.577 ...and/Paddle-Lite/lite/core/device_info.cc:1332 Setup] SVE2 i8mm support: 0
2024-04-08 14:36:33.581 24631-24631 Paddle-Lite com.hui.var.virtual A [F 4/ 8 14:36:33.581 /island/Paddle-Lite/lite/core/program.cc RuntimeProgram:316] Check failed: op:
Error: This model is not supported, because operator 'feed' is not supported by Paddle-Lite.
2024-04-08 14:36:33.581 24631-24631 libc com.hui.var.virtual A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 24631 (idu.var.virtual), pid 24631 (idu.var.virtual)
---------------------------- PROCESS STARTED (24688) for package com.hui.var.virtual ----------------------------
2024-04-08 14:36:33.752 24686-24686 DEBUG pid-24686 A Cmdline: com.hui.var.virtual
2024-04-08 14:36:33.752 24686-24686 DEBUG pid-24686 A pid: 24631, tid: 24631, name: idu.var.virtual >>> com.hui.var.virtual <<<
2024-04-08 14:36:33.752 24686-24686 DEBUG pid-24686 A #1 pc 00000000001c15a4 /data/app/~~CVy8FFm2d23qP-aTH5aRwA==/com.hui.var.virtual-1KvodUORM4sE1Roq0tpGNg==/lib/arm64/libvk_virtual_sdk.so (BuildId: 4ae9e1a239b2de282f6d87386db96f2041c9b59d)

@hong19860320
Copy link
Collaborator

你是不是用的是静态库啊?
如果要用静态库,一定要引用这三个头文件:
#include "include/paddle_api.h"
#include "include/paddle_use_kernels.h"
#include "include/paddle_use_ops.h"

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

No branches or pull requests

3 participants