Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • Paddle
  • Issue
  • #26234

P
Paddle
  • 项目概览

PaddlePaddle / Paddle
大约 2 年 前同步成功

通知 2325
Star 20933
Fork 5424
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 1423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
P
Paddle
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 1,423
    • Issue 1,423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
    • 合并请求 543
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板
已关闭
开放中
Opened 8月 13, 2020 by saxon_zh@saxon_zhGuest

hope to support "out of source build"

Created by: jeng1220

System information

  • PaddlePaddle version: 838e36e9, the latest develop branch

To Reproduce assume the file structure is:

$ ls
Paddle

then type

$ mkdir -p build
cd build
cmake ../Paddle -DWITH_PYTHON=OFF -DWITH_GPU=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DCUDA_ARCH_NAME=Turing -DON_INFER=ON -DWITH_MKL=OFF
make -j

The above instructions will create a build folder beside Paddle instead of inside Paddle folder to build Paddle library.

$ ls
build Paddle

It is called out of source build. The out of source build can give people many advantages, such as grepping information in source folder without interference from build folder.

However, now using out of source build will encounter invalid path error at last step:

[100%] Built target paddle_fluid_c_shared
...
cp: cannot stat '/test/workspace/paddle/build/../paddle/fluid/framework/io/crypto/cipher.h': No such file or directory

Other info / logs

[100%] Built target paddle_fluid_c_shared
Scanning dependencies of target inference_lib_dist
copying /test/workspace/paddle/build-dev/third_party/threadpool/src/extern_threadpool/ThreadPool.h -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/threadpool
copying /test/workspace/paddle/build-dev/third_party/cudaerror/data -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/cudaerror/data
copying /test/workspace/paddle/build-dev/CMakeCache.txt -> /test/workspace/paddle/build-dev/fluid_inference_install_dir
copying /test/workspace/paddle/build-dev/third_party/install/openblas/lib -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/install/openblas
copying /test/workspace/paddle/build-dev/third_party/install/openblas/include -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/install/openblas
copying /test/workspace/paddle/build-dev/third_party/install/gflags/include -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/install/gflags
copying /test/workspace/paddle/build-dev/third_party/install/gflags/lib/libgflags.a -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/install/gflags/lib
copying /test/workspace/paddle/build-dev/third_party/install/glog/include -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/install/glog
copying /test/workspace/paddle/build-dev/third_party/install/glog/lib/libglog.a -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/install/glog/lib
copying /test/workspace/paddle/build-dev/third_party/install/cryptopp/include -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/install/cryptopp
copying /test/workspace/paddle/build-dev/third_party/install/cryptopp/lib/libcryptopp.a -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/install/cryptopp/lib
copying /test/workspace/paddle/build-dev/third_party/install/xxhash/include -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/install/xxhash
copying /test/workspace/paddle/build-dev/third_party/install/xxhash/lib/libxxhash.a -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/install/xxhash/lib
copying /test/workspace/paddle/build-dev/third_party/install/protobuf/include -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/install/protobuf
copying /test/workspace/paddle/build-dev/third_party/install/protobuf/lib/libprotobuf.a -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/third_party/install/protobuf/lib
copying /test/workspace/paddle/Paddle/paddle/fluid/inference/api/paddle_*.h -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/paddle/include
copying /test/workspace/paddle/build-dev/paddle/fluid/inference/libpaddle_fluid.* -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/paddle/lib
copying /test/workspace/paddle/build-dev/paddle/fluid/framework/framework.pb.h -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/paddle/include/internal
copying /test/workspace/paddle/build-dev/../paddle/fluid/framework/io/crypto/cipher.h -> /test/workspace/paddle/build-dev/fluid_inference_install_dir/paddle/include/crypto/
cp: cannot stat '/test/workspace/paddle/build-dev/../paddle/fluid/framework/io/crypto/cipher.h': No such file or directory
CMakeFiles/inference_lib_dist.dir/build.make:84: recipe for target 'inference_lib_dist' failed
make[2]: *** [inference_lib_dist] Error 1
CMakeFiles/Makefile2:2605: recipe for target 'CMakeFiles/inference_lib_dist.dir/all' failed
make[1]: *** [CMakeFiles/inference_lib_dist.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/Paddle#26234
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7