Git Product home page Git Product logo

Comments (5)

lishicheng1996 avatar lishicheng1996 commented on June 2, 2024

已收到您的issue,等内部同学看一下

from paddle-lite.

xiebaiyuan avatar xiebaiyuan commented on June 2, 2024

没引用paddleop,spaddlekernels这几个头文件

from paddle-lite.

hong19860320 avatar hong19860320 commented on June 2, 2024

静态库一定要引用这三个头文件:
#include "include/paddle_api.h"
#include "include/paddle_use_kernels.h"
#include "include/paddle_use_ops.h"

from paddle-lite.

renshujiajia avatar renshujiajia commented on June 2, 2024

静态库一定要引用这三个头文件: #include "include/paddle_api.h" #include "include/paddle_use_kernels.h" #include "include/paddle_use_ops.h"

添加后报错变成了:(.text._ZN6paddle4lite3arm4math25conv_depthwise_5x5s2_int8IfEEvPT_PKaS7_PKfS9_biPfiiiiiiiiPNS0_7ContextILNS_8lite_api10TargetTypeE4EEE[_ZN6paddle4lite3arm4math25conv_depthwise_5x5s2_int8IfEEvPT_PKaS7_PKfS9_biPfiiiiiiiiPNS0_7ContextILNS_8lite_api10TargetTypeE4EEE]+0x2d4): undefined reference to __kmpc_fork_call' ../../3rdparty/inference_lite_lib.android.armv8.clang.c++_static.with_extra/cxx/lib/libpaddle_api_light_bundled.a(conv5x5s2_depthwise_int8.cc.o): In function .omp_outlined..1':
conv5x5s2_depthwise_int8.cc:(.text..omp_outlined..1+0xb0): undefined reference to __kmpc_for_static_init_4' conv5x5s2_depthwise_int8.cc:(.text..omp_outlined..1+0x170): undefined reference to omp_get_thread_num'
conv5x5s2_depthwise_int8.cc:(.text..omp_outlined..1+0x6b4): undefined reference to `__kmpc_for_static_fini'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
请问你有遇到过吗

from paddle-lite.

hong19860320 avatar hong19860320 commented on June 2, 2024

看起来没有找到 OMP的符号,你需要重新编译一个没有 OMP 的 LITE 库。

lite_option(LITE_WITH_OPENMP "Enable OpenMP in lite framework" ON)

ON 改成 OFF

from paddle-lite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.