PSPNET-cudnn5 icon indicating copy to clipboard operation
PSPNET-cudnn5 copied to clipboard

The warnings that I got when I used cmake-gui to comfigure the Code of PSPNET-cudnn5

Open yingning opened this issue 7 years ago • 2 comments

Hello, @BassyKuo , First,thank you for sharing your work.When I compiled your shared code by cmake-gui(3.9.0) on ubuntu16.04+CUDA8.0+CUDNNv5.1 .I met the following warnings during the generating process.

WARNING: Target "caffe" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test.testbin" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "upgrade_solver_proto_text" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "device_query" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe.bin" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_net" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "train_net" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "compute_image_mean" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "convert_imageset" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "upgrade_net_proto_binary" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "upgrade_net_proto_text" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "extract_features" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "finetune_net" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "net_speed_benchmark" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "convert_cifar_data" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "convert_mnist_data" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "classification" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "convert_mnist_siamese_data" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "pycaffe" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. Generating done

the configure results is followed:

Boost version: 1.58.0 Found the following Boost libraries: system thread filesystem chrono date_time atomic Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so) Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so) Found PROTOBUF Compiler: /usr/local/bin/protoc HDF5: Using hdf5 compiler wrapper to determine C configuration HDF5: Using hdf5 compiler wrapper to determine CXX configuration Found lmdb (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so) Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so) Found Snappy (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so) CUDA detected: 8.0 Found cuDNN: ver. 5.1.10 found (include: /usr/local/cuda-8.0/include, library: /usr/local/cuda-8.0/lib64/libcudnn.so) Added CUDA NVCC flags for: sm_61 Found OpenBLAS libraries: /opt/OpenBLAS/lib/libopenblas.so Found OpenBLAS include: /usr/include NumPy ver. 1.12.1 found (include: /home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include) Boost version: 1.58.0 Found the following Boost libraries: python Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) MATIO include:/usr/local/MATLAB/R2014a MATIO lib:/usr/bin

******************* Caffe Configuration Summary ******************* General: Version : 1.0.0-rc3 Git : 0f55ebc System : Linux C++ compiler : /usr/bin/c++ Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized Debug CXX flags : -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized Build type : Release

BUILD_SHARED_LIBS : ON BUILD_python : ON BUILD_matlab : ON BUILD_docs : ON CPU_ONLY : OFF USE_OPENCV : OFF USE_LEVELDB : ON USE_LMDB : ON ALLOW_LMDB_NOLOCK : OFF

Dependencies: BLAS : Yes (Open) Boost : Yes (ver. 1.58) glog : Yes gflags : Yes protobuf : Yes (ver. 2.5.0) lmdb : Yes (ver. 0.9.17) LevelDB : Yes (ver. 1.18) Snappy : Yes (ver. 1.1.3) CUDA : Yes (ver. 8.0)

NVIDIA CUDA: Target GPU(s) : Auto GPU arch(s) : sm_61 cuDNN : Yes (ver. 5.1.10)

Python: Interpreter : /home/jsj/anaconda2/bin/python2.7 (ver. 2.7.13) Libraries : /home/jsj/anaconda2/lib/libpython2.7.so (ver 2.7.13) NumPy : /home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include (ver 1.12.1)

Matlab: Matlab : Yes (/usr/local/MATLAB/R2014a/bin/mex, /usr/local/MATLAB/R2014a/bin/mexext Octave : No

Documentaion: Doxygen : No config_file :

Install: Install path : /home/jsj/PSPNET-cudnn5/build/install

Configuring done

Any suggestions will be appreciated!

yingning avatar Aug 23 '17 09:08 yingning

In my case, cmake can found the protobuf library, but you lost. It seems a protobuf problem that you miss the libprotobuf.so file to link these target.

Try to reinstall libprotobuf in your system:

apt-get install libprotobuf-dev

then the protobuf library path will be like:

-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so

Or if you use Anaconda, you can also install via conda:

conda install libprotobuf

the path is shown as:

-- Found Protobuf: /home/bassykuo/anaconda3/lib/libprotobuf.so

Please check and try. If the problem still happens, just feel free to comment. Thank you:)

BassyKuo avatar Aug 23 '17 14:08 BassyKuo

@BassyKuo Firstly,thank you for your response! Actually,I have installed protobuf-2.5.0 after using

sudo apt-get autoremove libprotobuf-dev protobuf-compiler

to uninstall the current version libprotobuf-dev and protobuf-compiler. And then compile the environment of the protobuf and its dynamic linking library.But I can't find the libprotobuf.so and libprotobuf-lite.so under the path " /usr/lib/x86_64-linux-gnu/", so I used the

sudo cp /usr/local/lib/libprotobuf.so /usr/lib/x86_64-linux-gnu/libprotobuf.so

sudo cp /usr/local/lib/libprotobuf-lite.so /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so

to make /usr/lib/x86_64-linux-gnu/ path have the two dynamic linking libraries . Finally,I reused cmake-gui to compile the code ,unluckily I have the same warnings mentioned above.

the following are the results of my compiling: Boost version: 1.58.0 Found the following Boost libraries: system thread filesystem chrono date_time atomic Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so) Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so) Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread (found version "2.5.0") Found PROTOBUF Compiler: /usr/local/bin/protoc HDF5: Using hdf5 compiler wrapper to determine C configuration HDF5: Using hdf5 compiler wrapper to determine CXX configuration Found lmdb (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so) Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so) Found Snappy (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so) CUDA detected: 8.0 Found cuDNN: ver. 5.1.10 found (include: /usr/local/cuda-8.0/include, library: /usr/local/cuda-8.0/lib64/libcudnn.so) Added CUDA NVCC flags for: sm_61 Found OpenBLAS libraries: /opt/OpenBLAS/lib/libopenblas.so Found OpenBLAS include: /usr/include NumPy ver. 1.12.1 found (include: /home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include) Boost version: 1.58.0 Found the following Boost libraries: python Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) MATIO include:/usr/local/MATLAB/R2014a MATIO lib:/usr/bin

******************* Caffe Configuration Summary ******************* General: Version : 1.0.0-rc3 Git : 0f55ebc System : Linux C++ compiler : /usr/bin/c++ Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized Debug CXX flags : -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized Build type : Release

BUILD_SHARED_LIBS : ON BUILD_python : ON BUILD_matlab : ON BUILD_docs : ON CPU_ONLY : OFF USE_OPENCV : OFF USE_LEVELDB : ON USE_LMDB : ON ALLOW_LMDB_NOLOCK : OFF

Dependencies: BLAS : Yes (Open) Boost : Yes (ver. 1.58) glog : Yes gflags : Yes protobuf : Yes (ver. 2.5.0) lmdb : Yes (ver. 0.9.17) LevelDB : Yes (ver. 1.18) Snappy : Yes (ver. 1.1.3) CUDA : Yes (ver. 8.0)

NVIDIA CUDA: Target GPU(s) : Auto GPU arch(s) : sm_61 cuDNN : Yes (ver. 5.1.10)

Python: Interpreter : /home/jsj/anaconda2/bin/python2.7 (ver. 2.7.13) Libraries : /home/jsj/anaconda2/lib/libpython2.7.so (ver 2.7.13) NumPy : /home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include (ver 1.12.1)

Matlab: Matlab : Yes (/usr/local/MATLAB/R2014a/bin/mex, /usr/local/MATLAB/R2014a/bin/mexext Octave : No

Documentaion: Doxygen : No config_file :

Install: Install path : /home/jsj/PSPNET-cudnn5/build/install

Configuring done WARNING: Target "caffe" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test.testbin" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "upgrade_solver_proto_text" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "device_query" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe.bin" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_net" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "train_net" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "compute_image_mean" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "convert_imageset" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "upgrade_net_proto_binary" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "upgrade_net_proto_text" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "extract_features" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "finetune_net" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "net_speed_benchmark" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "convert_cifar_data" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "convert_mnist_data" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "classification" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "convert_mnist_siamese_data" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "pycaffe" requests linking to directory "/usr/bin". Targets may link only to libraries. CMake is dropping the item. Generating done

yingning avatar Aug 24 '17 03:08 yingning