centos compile failed--snappy
cmake 输出:
-- Found Paddle host system: centos, version:
-- Found Paddle host system's CPU: 24 cores
-- CXX compiler: /usr/local/bin/c++, version: GNU 4.8.5
-- C compiler: /usr/local/bin/cc, version: GNU 4.8.5
-- AR tools: /usr/bin/ar
-- Do not have AVX2 intrinsics and disabled MKL-DNN
CMake Warning at /usr/local/share/cmake-3.13/Modules/FindProtobuf.cmake:496 (message):
Protobuf compiler version 3.1.0 doesn't match library version 3.6.1
Call Stack (most recent call first):
cmake/external/protobuf.cmake:18 (FIND_PACKAGE)
CMakeLists.txt:139 (include)
-- Protobuf protoc executable: /root/lilw/Paddle/build/release/third_party/install/protobuf/bin/protoc
-- Protobuf-lite library: /root/lilw/Paddle/build/release/third_party/install/protobuf/lib/libprotobuf-lite.a
-- Protobuf library: /root/lilw/Paddle/build/release/third_party/install/protobuf/lib/libprotobuf.a
-- Protoc library: /root/lilw/Paddle/build/release/third_party/install/protobuf/lib/libprotoc.a
-- Protobuf version: 3.1.0
-- BLAS library: /root/lilw/Paddle/build/release/third_party/install/openblas/lib/libopenblas.a
-- BLAS Include: /root/lilw/Paddle/build/release/third_party/install/openblas/include
-- BOOST_TAR: boost_1_41_0, BOOST_URL: http://paddlepaddledeps.bj.bcebos.com/boost_1_41_0.tar.gz
-- warp-ctc library: /root/lilw/Paddle/build/release/third_party/install/warpctc/lib/libwarpctc.so
-- Current cuDNN header is /usr/local/cuda/include/cudnn.h. Current cuDNN version is v7.4.
-- CUDA detected: 9.0
-- Added CUDA NVCC flags for: sm_61 sm_70
-- add dgc lib.
-- Ccache is founded, use ccache to speed up compile.
-- Paddle version is 1.5.0
CMake Warning at CMakeLists.txt:256 (message):
On inference mode, will take place some specific optimization. Turn on the
ON_INFER flag when building inference_lib only.
-- add pass graph_to_program_pass base
-- add pass graph_viz_pass base
-- add pass lock_free_optimize_pass base
-- add pass fc_fuse_pass inference
-- add pass attention_lstm_fuse_pass inference
-- add pass infer_clean_graph_pass inference
-- add pass fc_lstm_fuse_pass inference
-- add pass embedding_fc_lstm_fuse_pass inference
-- add pass fc_gru_fuse_pass inference
-- add pass seq_concat_fc_fuse_pass inference
-- add pass multi_batch_merge_pass base
-- add pass conv_bn_fuse_pass inference
-- add pass seqconv_eltadd_relu_fuse_pass inference
-- add pass seqpool_concat_fuse_pass inference
-- add pass repeated_fc_relu_fuse_pass inference
-- add pass squared_mat_sub_fuse_pass inference
-- add pass is_test_pass base
-- add pass conv_elementwise_add_act_fuse_pass inference
-- add pass conv_elementwise_add2_act_fuse_pass inference
-- add pass conv_elementwise_add_fuse_pass inference
-- add pass conv_affine_channel_fuse_pass inference
-- add pass transpose_flatten_concat_fuse_pass inference
-- add pass identity_scale_op_clean_pass base
-- add pass sync_batch_norm_pass base
-- add pass runtime_context_cache_pass base
-- add pass quant_conv2d_dequant_fuse_pass inference
-- add pass fillconstant_elementwisemul_fuse inference
-- add pass shuffle_channel_detect_pass inference
-- add pass delete_quant_dequant_op_pass inference
-- commit: 401c03f
-- branch: heads/remotes/origin/release/1.5
-- WARNING: This is just a warning for publishing release.
You are building AVX version without NOAVX core.
So the wheel package may fail on NOAVX machine.
You can add -DFLUID_CORE_NAME=/path/to/your/core_noavx.* in cmake command
to get a full wheel package to resolve this warning.
While, this version will still work on local machine.
-- Configuring done
-- Generating done
make 输出:
[ 7%] Built target extern_dgc
/root/lilw/Paddle/build/release/third_party/snappy_stream/src/extern_snappystream/src/osnappystream.cpp:11:20: fatal error: snappy.h: No such file or directory
#include "snappy.h"
^
compilation terminated.
/root/lilw/Paddle/build/release/third_party/snappy_stream/src/extern_snappystream/src/isnappystream.cpp:12:20: fatal error: snappy.h: No such file or directory
#include "snappy.h"
^
compilation terminated.
解决了:是因为我是创建的 build/release 下make的,看来是必须只能在build下make
看来是必须只能在build下make
您好,Paddle没有这样的要求,请问您的cmake命令是怎样的?
我测试的结果是,不能在build/release这种下两层的目录构建,build目录只是习惯命名
------------------ Original ------------------ From: "Yiqun Liu"[email protected]; Date: Mon, Jul 1, 2019 05:43 PM To: "PaddlePaddle/Paddle"[email protected]; Cc: "intgogo"[email protected]; "State change"[email protected]; Subject: Re: [PaddlePaddle/Paddle] centos compile failed--snappy (#18369)
看来是必须只能在build下make
您好,Paddle没有这样的要求,请问您的cmake命令是怎样的?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.