PaddlePaddle / PaddleCustomDevice

PaddlePaddle custom device implementaion. (『飞桨』自定义硬件接入实现)
Apache License 2.0
68 stars 142 forks source link

华为910A 编译报错:include "unsupported/Eigen/CXX11/Tensor #1177

Closed Jakin-huang closed 4 months ago

Jakin-huang commented 5 months ago

/opt/py39/lib/python3.9/site-packages/paddle/include/paddle/phi/kernels/funcs/eigen/extensions.h:23:10: fatal error: unsupported/Eigen/CXX11/Tensor: No such file or directory

include "unsupported/Eigen/CXX11/Tensor"

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. CMakeFiles/paddle-custom-npu.dir/build.make:257: recipe for target 'CMakeFiles/paddle-custom-npu.dir/kernels/argsort_kernel.cc.o' failed make[2]: [CMakeFiles/paddle-custom-npu.dir/kernels/argsort_kernel.cc.o] Error 1 CMakeFiles/paddle-custom-npu.dir/build.make:453: recipe for target 'CMakeFiles/paddle-custom-npu.dir/kernels/contiguous_kernel.cc.o' failed make[2]: [CMakeFiles/paddle-custom-npu.dir/kernels/contiguous_kernel.cc.o] Error 1 CMakeFiles/paddle-custom-npu.dir/build.make:439: recipe for target 'CMakeFiles/paddle-custom-npu.dir/kernels/concat_kernel.cc.o' failed make[2]: [CMakeFiles/paddle-custom-npu.dir/kernels/concat_kernel.cc.o] Error 1 CMakeFiles/paddle-custom-npu.dir/build.make:173: recipe for target 'CMakeFiles/paddle-custom-npu.dir/kernels/add_n_kernel.cc.o' failed make[2]: [CMakeFiles/paddle-custom-npu.dir/kernels/add_n_kernel.cc.o] Error 1 CMakeFiles/paddle-custom-npu.dir/build.make:411: recipe for target 'CMakeFiles/paddle-custom-npu.dir/kernels/coalesce_tensor_kernel.cc.o' failed make[2]: [CMakeFiles/paddle-custom-npu.dir/kernels/coalesce_tensor_kernel.cc.o] Error 1 CMakeFiles/Makefile2:159: recipe for target 'CMakeFiles/paddle-custom-npu.dir/all' failed make[1]: [CMakeFiles/paddle-custom-npu.dir/all] Error 2 Makefile:100: recipe for target 'all' failed make: *** [all] Error 2

Jakin-huang commented 5 months ago

当配置了Eigen后报错如下:

/opt/py39/lib/python3.9/site-packages/paddle/include/paddle/phi/kernels/funcs/eigen/extensions.h:378:49: error: ‘expm1’ is not a template function HOSTDEVICE inline float16 expm1(const float16& a) { ^ /opt/py39/lib/python3.9/site-packages/paddle/include/paddle/phi/kernels/funcs/eigen/extensions.h:378:49: error: ‘expm1’ is not a template function HOSTDEVICE inline float16 expm1(const float16& a) {

CMakeFiles/paddle-custom-npu.dir/build.make:285: recipe for target 'CMakeFiles/paddle-custom-npu.dir/kernels/batch_norm_kernel.cc.o' failed make[2]: [CMakeFiles/paddle-custom-npu.dir/kernels/batch_norm_kernel.cc.o] Error 1 CMakeFiles/paddle-custom-npu.dir/build.make:117: recipe for target 'CMakeFiles/paddle-custom-npu.dir/kernels/activation_kernel.cc.o' failed make[2]: [CMakeFiles/paddle-custom-npu.dir/kernels/activation_kernel.cc.o] Error 1 CMakeFiles/Makefile2:159: recipe for target 'CMakeFiles/paddle-custom-npu.dir/all' failed make[1]: [CMakeFiles/paddle-custom-npu.dir/all] Error 2 Makefile:100: recipe for target 'all' failed make: [all] Error 2

YanhuiDua commented 5 months ago

你好,这个问题我们正在修复中,修复后在这里给出修复PR哈~

parap1uie-s commented 4 months ago

Same issue

YanhuiDua commented 4 months ago

你好,Paddle侧修复PR在这里,https://github.com/PaddlePaddle/Paddle/pull/63757,先安装下昨天产出的daily build的paddlepaddle-cpu whl包,再重新编译下PaddleCustomDevice

parap1uie-s commented 4 months ago

你好,Paddle侧修复PR在这里,https://github.com/PaddlePaddle/Paddle/pull/63757,先安装下昨天产出的daily build的paddlepaddle-cpu whl包,再重新编译下PaddleCustomDevice

明天https://www.paddlepaddle.org.cn/whl/linux/cpu-mkl/develop.html下的whl会更新吗?

YanhuiDua commented 4 months ago

会的 这个是daily build的whl包

Jakin-huang commented 4 months ago

截止到2024/4/25 09:31 从https://paddle-wheel.bj.bcebos.com/develop/linux/linux-cpu-mkl-avx/paddlepaddle-0.0.0-cp39-cp39-linux_aarch64.whl下载的还是无法解决。 image 如果不是这个链接下载,麻烦提供下:,https://github.com/PaddlePaddle/Paddle/pull/63757%EF%BC%8C%E5%85%88%E5%AE%89%E8%A3%85%E4%B8%8B%E6%98%A8%E5%A4%A9%E4%BA%A7%E5%87%BA%E7%9A%84daily build的paddlepaddle-cpu whl包具体地址,实在没看明白或者如何操作

YanhuiDua commented 4 months ago

我看下

YanhuiDua commented 4 months ago

这个是修复的PR:https://github.com/PaddlePaddle/Paddle/pull/63839;刚刚合入的。这个地址的whl包明天才会更新,https://paddle-wheel.bj.bcebos.com/develop/linux/linux-cpu-mkl-avx/paddlepaddle-0.0.0-cp39-cp39-linux_aarch64.whl,可以源码编译下Paddle

parap1uie-s commented 4 months ago

这个是修复的PR:https://github.com/PaddlePaddle/Paddle/pull/63839;刚刚合入的。这个地址的whl包明天才会更新,https://paddle-wheel.bj.bcebos.com/develop/linux/linux-cpu-mkl-avx/paddlepaddle-0.0.0-cp39-cp39-linux_aarch64.whl,可以源码编译下Paddle

4月26日,编译仍然报错

YanhuiDua commented 4 months ago

这个是修复的PR:https://github.com/PaddlePaddle/Paddle/pull/63839;刚刚合入的。这个地址的whl包明天才会更新,https://paddle-wheel.bj.bcebos.com/develop/linux/linux-cpu-mkl-avx/paddlepaddle-0.0.0-cp39-cp39-linux_aarch64.whl,可以源码编译下Paddle

4月26日,编译仍然报错

官网的aarch64的whl包没有更新,我这里编译一个给你吧,确认下是需要py39+aarch64的吗?

parap1uie-s commented 4 months ago

这个是修复的PR:https://github.com/PaddlePaddle/Paddle/pull/63839;刚刚合入的。这个地址的whl包明天才会更新,https://paddle-wheel.bj.bcebos.com/develop/linux/linux-cpu-mkl-avx/paddlepaddle-0.0.0-cp39-cp39-linux_aarch64.whl,可以源码编译下Paddle

4月26日,编译仍然报错

官网的aarch64的whl包没有更新,我这里编译一个给你吧,确认下是需要py39+aarch64的吗?

不紧急,等官网更新吧

YanhuiDua commented 4 months ago

Hi,这是develop的paddle-py38-aarch64的whl包,可以试下:https://ecloud.baidu.com?t=828871c55dc398a4a9678a8706177d0c

qili93 commented 4 months ago

您好,请问这个问题是否已经解决,谢谢!

qili93 commented 4 months ago

Close as no more comments, thanks!