PaddlePaddle / Anakin

High performance Cross-platform Inference-engine, you could run Anakin on x86-cpu,arm, nv-gpu, amd-gpu,bitmain and cambricon devices.
https://anakin.baidu.com/
Apache License 2.0
532 stars 135 forks source link

centos 7.3执行x86_build.sh报错 #510

Open jiansongjay opened 5 years ago

jiansongjay commented 5 years ago

GCC版本为4.8.5 系统版本为centos 7.3 执行x86_build.sh后显示如下错误: /home/dev/thirdparty/Anakin/saber/funcs/impl/x86/saber_lstm.h: In member function ‘virtual anakin::saber::SaberStatus anakin::saber::SaberLstm<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum)4>, OpDtype, inDtype, outDtype, LayOutType_op, LayOutType_in, LayOutType_out>::init(const std::vector<anakin::saber::Tensor<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum)4>, inDtype, LayOutType_in>>&, std::vector<anakin::saber::Tensor<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum)4>, outDtype, LayOutType_out>>&, anakin::saber::LstmParam<anakin::saber::Tensor<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum)4>, OpDtype, LayOutType_op> >&, anakin::saber::Context<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum)4> >&)’: /home/dev/thirdparty/Anakin/saber/funcs/impl/x86/saber_lstm.h:26:24: error: ‘__m256’ was not declared in this scope

define SABER_X86_TYPE __m256

                    ^

/home/dev/thirdparty/Anakin/saber/funcs/impl/x86/saber_lstm.h:78:34: note: in expansion of macro ‘SABER_X86_TYPE’ int aligned_byte= sizeof(SABER_X86_TYPE); ^~~~~~ In file included from /home/dev/thirdparty/Anakin/saber/funcs/impl/x86/saber_gru.cpp:2:0: /home/dev/thirdparty/Anakin/saber/funcs/impl/x86/saber_gru.h: In member function ‘virtual anakin::saber::SaberStatus anakin::saber::SaberGru<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum)4>, OpDtype, inDtype, outDtype, LayOutType_op, LayOutType_in, LayOutType_out>::init(const std::vector<anakin::saber::Tensor<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum)4>, inDtype, LayOutType_in>>&, std::vector<anakin::saber::Tensor<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum)4>, outDtype, LayOutType_out>>&, anakin::saber::GruParam<anakin::saber::Tensor<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum)4>, OpDtype, LayOutType_op> >&, anakin::saber::Context<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum)4> >&)’: /home/dev/thirdparty/Anakin/saber/funcs/impl/x86/saber_gru.h:10:24: error: ‘__m256’ was not declared in this scope

2015-10-10 commented 5 years ago

建议您先使用cmake编译查看日志是否正确,然后再使用make,我们更新了docs,很快提交github,包括编译示例和集成anakin demo,敬请期待!