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

c-api examples编译后运行出core #3543

Closed
fty8788 opened this issue Aug 17, 2017 · 7 comments
Closed

c-api examples编译后运行出core #3543

fty8788 opened this issue Aug 17, 2017 · 7 comments
Labels
User 用于标记用户问题

Comments

@fty8788
Copy link

fty8788 commented Aug 17, 2017

http://wiki.baidu.com/pages/viewpage.action?pageId=333193833
采用预编译好的二进制库文件,加入examples/model_inference/dense项目
link_directories("/home/work/yitengfei/Paddle/paddle/capi/examples/usr/local/lib")
编译完后,运行出core,加-g后gdb栈是乱码:
image

@qingqing01
Copy link
Contributor

@fty8788 首先提Issue请尽量贴文字信息,方便其他同学检索到~

能否提供更多的log,以及运行机器信息? 看看存不存在用的是AVX编译的版本,而机器不支持AVX?

@qingqing01 qingqing01 added User 用于标记用户问题 Need More Details labels Aug 17, 2017
@fty8788
Copy link
Author

fty8788 commented Aug 17, 2017

@qingqing01 嗯嗯,我编译的过程是:

  1. 从 C-API库指定机器上下载库文件
    2.在paddle/capi/examples下解压缩
    3.在paddle/capi/examples/model_inference/dense目录下,CMakeLists.txt第4行加:
    link_directories("/home/work/yitengfei/Paddle/paddle/capi/examples/usr/local/lib")
    然后cmake . && make
    4.运行dense,出core,core信息无法看
    机器信息:
    Linux cq01-pl27.cq01.baidu.com 2.6.32_1-15-0-0 read data from hdfs #1 SMP Fri Jan 16 10:20:19 CST 2015 x86_64 GNU/Linux
    CentOS release 4.3 (Final)

@qingqing01
Copy link
Contributor

@fty8788 运行下面命令确认下,你使用的机器是否支持AVX~

cat /proc/cpuinfo | grep avx

@fty8788
Copy link
Author

fty8788 commented Aug 17, 2017

@qingqing01 结果为空

@qingqing01
Copy link
Contributor

qingqing01 commented Aug 17, 2017

@fty8788 那就是你使用的机器不支持AVX,而使用的C-API是AVX编译的,出的core。 解决办法,需要更换C-API库,或者换机器~

@fty8788
Copy link
Author

fty8788 commented Aug 17, 2017

@qingqing01 通过换机器解决了,多谢

@fty8788 fty8788 closed this as completed Aug 17, 2017
@web3shannon
Copy link

同样问题
我是从paddleci.ngrok.io下载的capi
但是这上面没有区分所下载版本是否支持avx
请问从哪能下到自动检测avx的capi?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User 用于标记用户问题
Projects
None yet
Development

No branches or pull requests

3 participants