-
Notifications
You must be signed in to change notification settings - Fork 152
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
寒武纪mlu 如何对PaddleCustomDevice的mlu进行源码编译? #1331
Comments
@YanhuiDua 我按照步骤,用python3.8进行源码编译 PaddleCustomDevice release/2.6版本,过程中遇到一些错误,
但是也能正常编译出wheel包。
在执行之前同样验证过的程序时,出现Segmentation fault。
请问如何解决呢? |
看上去是第三方依赖哭pthread的问题,建议使用官方提供的镜像:docker pull registry.baidubce.com/device/paddle-mlu:ctr2.15.0-ubuntu20-x86_64-gcc84-py310,在这个镜像里安装py38的环境进行编译 也可以参考这个dockerfile自己产出py38的镜像: paddle-mlu的dockerfile : https://github.com/PaddlePaddle/PaddleCustomDevice/blob/develop/backends/mlu/tools/dockerfile/Dockerfile.mlu.kylinv10.gcc82.py310 paddle-cpu的dockerfile: https://github.com/PaddlePaddle/PaddleCustomDevice/blob/develop/backends/custom_cpu/tools/dockerfile/Dockerfile.ubuntu20.x86_64.gcc84 |
重新尝试在registry.baidubce.com/device/paddle-mlu:ctr2.15.0-ubuntu20-x86_64-gcc84-py310镜像里安装了py38的环境进行编译,发现与主机端编译时报错一样。是否是由于paddlecustomdevice版本问题导致的编译不通过呢?如果是paddlecustomdevice版本的问题,请问正常执行的paddlecustomdevice版本是哪个? |
根据这个报错,你编译的包应该是可以的,需要通过 --force-reinstall 命令重新安装下 paddle-custom-mlu is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel. |
当我使用下面的dockerfile构建py3.8版本的容器时
构建到这部分构建命令时,
出现错误:
ping pip.baidu-int.com 显示 Name or service not known,请问如何解决? |
由于python版本要求使用3.8版本,不能直接使用安装python3.10版本的wheel包
paddle_custom_mlu.whl
可以给出paddlecustomdevice源码编译的步骤和命令么?谢谢!
@YanhuiDua
The text was updated successfully, but these errors were encountered: