-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Conversation
#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") |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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." |
There was a problem hiding this comment.
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." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不过既然两个postint类似,那可以用软连接把两个postint换成一个。
然后在echo里面把操作系统相关的信息去掉。
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 -- Current cuDNN header is /usr/local/cuda/include/cudnn.h. Current cuDNN version is v5. |
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. |
* Add softmax, sigmoid op and enhance test, fix bugs. Co-authored-by: wenming2014 <[email protected]> Co-authored-by: Yan Chunwei <[email protected]>
deploy update README
No description provided.