bug描述 Describe the Bug
我使用https://github.com/PaddlePaddle/Paddle/commit/31174be8bac15216c71b3b5a6e34d63aa13b81f5
版本的paddle源码进行编译,软件栈为rocm 5.7,gcc 9.4.0, python 3.9 ,ubuntu 18.04.
cmake指令:cmake -DPY_VERSION=3.9 -DWITH_ROCM=ON -DWITH_GPU=OFF -DWITH_NCCL=OFF -DWITH_RCCL=ON -DWITH_PSCORE=OFF -DWITH_TESTING=OFF -DWITH_DISTRIBUTE=ON -DCMAKE_HIP_ARCHITECTURES=gfx906,gfx908,gfx916,gfx926,gfx928 -DCMAKE_PREFIX_PATH=/opt/rocm ..
完成cmake之后,使用make进行编译,出现错误:
[ 62%] Building CXX object paddle/fluid/pir/dialect/CMakeFiles/op_dialect.dir/operator/ir/pd_api.cc.o
In file included from /workspace/Paddle-3117/build/paddle/fluid/pir/dialect/operator/ir/pd_api.cc:7:
/workspace/Paddle-3117/paddle/fluid/imperative/amp_utils.h:19:10: fatal error: paddle/fluid/eager/api/generated/eager_generated/forwards/dygraph_functions.h: No such file or directory
19 | #include "paddle/fluid/eager/api/generated/eager_generated/forwards/dygraph_functions.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
paddle/fluid/pir/dialect/CMakeFiles/op_dialect.dir/build.make:733: recipe for target 'paddle/fluid/pir/dialect/CMakeFiles/op_dialect.dir/operator/ir/pd_api.cc.o' failed
make[2]: *** [paddle/fluid/pir/dialect/CMakeFiles/op_dialect.dir/operator/ir/pd_api.cc.o] Error 1
CMakeFiles/Makefile2:50128: recipe for target 'paddle/fluid/pir/dialect/CMakeFiles/op_dialect.dir/all' failed
make[1]: *** [paddle/fluid/pir/dialect/CMakeFiles/op_dialect.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2
我rm -rf *后,重新cmake和make,两次都出现了同样的错误,感觉像是generate阶段生成的文件有所缺失,请问有什么解决办法吗?
其他补充信息 Additional Supplementary Information
No response
1条答案
按热度按时间xxb16uws1#