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

x86_build.s执行error #460

Open duanlin0505 opened 6 years ago

duanlin0505 commented 6 years ago

按照如下步骤进行anakin的安装: https://github.com/PaddlePaddle/Anakin/blob/developing/docs/Manual/INSTALL_ch.md

环境: ubuntu18.04 make --version GNU Make 4.1 g++ --version g++ (Ubuntu 7.3.0-16ubuntu3) 7.3.0 cmake --version cmake version 3.10.2 protoc --version libprotoc 3.6.1

执行下面命令时: $ sh Anakin/tools/x86_build.sh

出现以下error: /home/Anakin/saber/funcs/impl/x86/saber_gru.h:10:24: error: ‘__m256’ was not declared in this scope

define SABER_X86_TYPE __m256

                    ^

/home/Anakin/saber/funcs/impl/x86/saber_gru.h:58:38: note: in expansion of macro ‘SABER_X86_TYPE’ int aligned_byte= sizeof(SABER_X86_TYPE); ^~~~~~ /home/Anakin/saber/funcs/impl/x86/saber_gru.h:10:24: note: suggested alternative: ‘__modf’

define SABER_X86_TYPE __m256

                    ^

/home/Anakin/saber/funcs/impl/x86/saber_gru.h:58:38: note: in expansion of macro ‘SABER_X86_TYPE’ int aligned_byte= sizeof(SABER_X86_TYPE); ^~~~~~ saber/CMakeFiles/anakin_saber_common.dir/build.make:494: recipe for target 'saber/CMakeFiles/anakin_saber_common.dir/funcs/impl/x86/saber_gru.cpp.o' failed make[2]: [saber/CMakeFiles/anakin_saber_common.dir/funcs/impl/x86/saber_gru.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... CMakeFiles/Makefile2:140: recipe for target 'saber/CMakeFiles/anakin_saber_common.dir/all' failed make[1]: [saber/CMakeFiles/anakin_saber_common.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: [all] Error 2

Shixiaowei02 commented 6 years ago

@duanlin0505 如邮件回复,请降低 GCC 版本。后续我们会完善高版本 GCC 的编译使用,谢谢!

jiansongjay commented 5 years ago

gcc版本多少是OK的?