Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add centos support, including building from source doc, rpm package and docker images #212

Closed
wants to merge 4 commits into from

Conversation

QiJune
Copy link
Member

@QiJune QiJune commented Oct 17, 2016

No description provided.

@reyoung reyoung changed the base branch from master to develop October 26, 2016 10:23
@reyoung reyoung self-assigned this Oct 26, 2016
#set(CPACK_GENERATOR "DEB")
## RPM Settings
set(CPACK_RPM_PACKAGE_NAME paddle)
set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${PROJ_ROOT}/paddle/scripts/rpm/postinst")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So where is RPM CPACK_RPM_PACKAGE_REQUIRES?

**Note:**

If you set `WITH_SWIG_PY=ON`, related python dependencies also need to be installed.
Otherwise, PaddlePaddle will automatically install python dependencies
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是不对的,即使设置了swig ON, 第一次调用paddle的时候,也会把dependencies装完。

build_script=('build.sh' 'build_centos.sh')
cpu_tag=('gpu' 'cpu')
image_tag=('-ubuntu14.04' '-centos7')
avx_tag=('' '-noavx')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不要去修改ubuntu的Dockerfile文件名。

@@ -0,0 +1,7 @@
#!/bin/bash
set -e
echo "Post install paddle debian package."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Post install paddle centos package.

set -e
echo "Post install paddle debian package."
echo "Install some python package used for paddle. You can run "
echo " pip install /usr/opt/paddle/share/wheels/*.whl to install them."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不过既然两个postint类似,那可以用软连接把两个postint换成一个。
然后在echo里面把操作系统相关的信息去掉。

@jimdowling
Copy link

I tried this branch. Doesn't compile for me on centos 7.2

[hdp@hadoop5 build]$ cmake .. -DWITH_GPU=ON -DWITH_DOC=OFF -- The CXX compiler identification is GNU 4.8.5
-- The C compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found SWIG: /bin/swig (found suitable version "2.0.10", minimum required is "2.0")
-- Found PROTOBUF: /usr/lib64/libprotobuf.so
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
-- Found PythonInterp: /bin/python2.7 (found suitable version "2.7.5", minimum required is "2.7")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Found NumPy: /usr/lib/python2.7/site-packages/numpy/core/include
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Performing Test MMX_FOUND
-- Performing Test MMX_FOUND - Success
-- Performing Test SSE2_FOUND
-- Performing Test SSE2_FOUND - Success
-- Performing Test SSE3_FOUND
-- Performing Test SSE3_FOUND - Success
-- Performing Test AVX_FOUND
-- Performing Test AVX_FOUND - Success
-- Performing Test AVX2_FOUND
-- Performing Test AVX2_FOUND - Success
-- Found LIBGLOG: /usr/lib64/libglog.so
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- Found installed version of gflags: /lib64/cmake/gflags
-- Detected broken gflags install in: /lib64/cmake/gflags, version: 2.1.1 <= 2.1.2 which defines gflags_LIBRARIES = gflags which is not an imported CMake target, see: gflags/gflags#110. Attempting to fix by detecting correct gflags target.
-- Found valid gflags target: gflags-shared, updating gflags_LIBRARIES.
-- Detected gflags version: 2.1.1
-- Failed to find gflags - Could not find file: //include/gflags/gflags.h containing namespace information in gflags install located at: //include.
-- Failed to find gflags - Failed to determine gflags namespace using regex for gflags version: 2.1.1 exported here: /lib64/cmake/gflags using CMake.
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Found OpenBlas (include: /usr/include/openblas, library: /usr/lib64/libopenblas.so)
-- Performing Test COMPILER_SUPPORT_CXX11
-- Performing Test COMPILER_SUPPORT_CXX11 - Success
-- Performing Test COMPILER_SUPPORT_CXX0X
-- Performing Test COMPILER_SUPPORT_CXX0X - Success
-- Looking for UINT64_MAX
-- Looking for UINT64_MAX - found
-- Performing Test C_COMPILER_SUPPORT_FLAG__fPIC
-- Performing Test C_COMPILER_SUPPORT_FLAG__fPIC - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__fPIC
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__fPIC - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__fno_omit_frame_pointer
-- Performing Test C_COMPILER_SUPPORT_FLAG__fno_omit_frame_pointer - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__fno_omit_frame_pointer
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__fno_omit_frame_pointer - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wall
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wall - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wall
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wall - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wextra
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wextra - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wextra
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wextra - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Werror
-- Performing Test C_COMPILER_SUPPORT_FLAG__Werror - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Werror
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Werror - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor - Failed
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wnon_virtual_dtor - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor - Failed
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wdelete_non_virtual_dtor - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_unused_parameter
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_unused_parameter - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_unused_parameter
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_unused_parameter - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_unused_function
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_unused_function - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_unused_function
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_unused_function - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_literal_suffix
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_literal_suffix - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_literal_suffix
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_literal_suffix - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_unused_local_typedefs
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_unused_local_typedefs - Success
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_unused_local_typedefs
-- Performing Test CXX_COMPILER_SUPPORT_FLAG__Wno_error_unused_local_typedefs - Success
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_unused_function
-- Performing Test C_COMPILER_SUPPORT_FLAG__Wno_error_unused_function - Success
CMake Error at cmake/cudnn.cmake:33 (get_filename_component):
get_filename_component unknown component DIRECTORY
Call Stack (most recent call first):
CMakeLists.txt:60 (include)

-- Current cuDNN header is /usr/local/cuda/include/cudnn.h. Current cuDNN version is v5.
-- Found CUDA: /usr/local/cuda (found version "8.0")
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.6")
-- Found PythonInterp: /bin/python2.7 (found version "2.7.5")
-- Found PY_wheel: /usr/lib/python2.7/site-packages/wheel
-- Found Git: /bin/git (found version "1.8.3.1")
-- DROP LINT dataproviders/MultiDataProvider.cpp
-- DROP LINT dataproviders/MultiDataProvider.h
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Found PY_pip: /usr/lib/python2.7/site-packages/pip
-- Found PY_google.protobuf: /usr/lib/python2.7/site-packages/google/protobuf
-- Configuring incomplete, errors occurred!

@wangkuiyi
Copy link
Collaborator

wangkuiyi commented Nov 27, 2016

Hi @jimdowling , we are making Docker the only officially supported way to running Paddle. Because our base image is Ubuntu 14.04, so its is also reasonable to build from source code on Ubuntu 14.04. We used to try to support more platforms, but with more and more platforms supporting Docker, these trials become less valuable.

@wangkuiyi wangkuiyi closed this Nov 27, 2016
Meiyim pushed a commit to Meiyim/Paddle that referenced this pull request May 21, 2021
test=develop
Meiyim pushed a commit to Meiyim/Paddle that referenced this pull request May 21, 2021
thisjiang pushed a commit to thisjiang/Paddle that referenced this pull request Oct 28, 2021
*  Add softmax, sigmoid op and enhance test, fix bugs.


Co-authored-by: wenming2014 <[email protected]>
Co-authored-by: Yan Chunwei <[email protected]>
wangxicoding pushed a commit to wangxicoding/Paddle that referenced this pull request Dec 9, 2021
WAYKEN-TSE pushed a commit to WAYKEN-TSE/Paddle that referenced this pull request Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants