之前利用bazel build tensorflow/examples/image_retraining:retrain,出现Error
ERROR: missing input file ‘//third_party/mpi:mpicxx.h’.
ERROR: /home/py/tensorflow/tensorflow/core/kernels/BUILD:1520:1: C++ compilation of rule ‘//tensorflow/core/kernels:padding_fifo_queue’ failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE ‘-D_FORTIFY_SOURCE=1’ -fstack-protector -fPIE -Wall -Wunused-but-set-parameter … (remaining 120 argument(s) skipped): com.google.devtools.build.lib.shell.AbnormalTerminationException: Process terminated by signal 15.
ERROR: /home/py/tensorflow/third_party/mpi/BUILD:18:1: //third_party/mpi:mpi: missing input file ‘//third_party/mpi:mpicxx.h’.
Target //tensorflow/examples/image_retraining:retrain failed to build
Use –verbose_failures to see the command lines of failed build steps.
ERROR: /home/py/tensorflow/third_party/mpi/BUILD:18:1 1 input file(s) do not exist.
目前看来好像MPI缺少文件,待解决
解决:进入tensorflow/third_party/mpi发现所有缺少的文件都在,双击mpicxx.h后显示失去链接,才发现mpi安装目录和tensorflow的不一样,后来将文件复制放在third_party里面,问题解决
本文记录了使用Bazel构建TensorFlow图像重新训练示例时遇到的MPI头文件缺失问题及其解决方案。问题表现为找不到‘mpicxx.h’文件,通过检查发现该文件已存在于正确路径下但链接丢失。最终通过调整文件位置解决了该问题。
1万+

被折叠的 条评论
为什么被折叠?



