-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
411 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> | ||
COPY build.sh /root/ | ||
ENV WITH_GPU=OFF | ||
ENV IS_DEVEL=ON | ||
ENV WITH_DEMO=ON | ||
ENV PIP_INSTALL_ARGS "" | ||
ENV PIP_GENERAL_ARGS "" | ||
ENV USE_UBUNTU_MIRROR OFF | ||
ENV WITH_AVX=OFF | ||
RUN cd /root/ && bash build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
function abort(){ | ||
echo "An error occurred. Exiting..." 1>&2 | ||
exit 1 | ||
} | ||
|
||
trap 'abort' 0 | ||
set -e | ||
if [ ${USE_UBUNTU_MIRROR} == "ON" ]; then | ||
sed -i 's#http://archive\.ubuntu\.com/ubuntu/#mirror://mirrors\.ubuntu\.com/mirrors\.txt#g'\ | ||
/etc/apt/sources.list | ||
fi | ||
apt-get update | ||
apt-get install -y cmake libprotobuf-dev protobuf-compiler git \ | ||
libgoogle-glog-dev libgflags-dev libatlas-dev libatlas3-base g++ m4 python-pip\ | ||
python-protobuf python-numpy python-dev swig | ||
|
||
if [ ${WITH_GPU} == 'ON' ]; then | ||
ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so /usr/lib/libcudnn.so | ||
fi | ||
|
||
cd ~ | ||
git clone https://github.com/baidu/Paddle.git paddle | ||
cd paddle | ||
mkdir build | ||
cd build | ||
cmake .. -DWITH_DOC=OFF -DWITH_GPU=${WITH_GPU} -DWITH_SWIG_PY=ON\ | ||
-DCUDNN_ROOT=/usr/ -DWITH_STYLE_CHECK=OFF -DWITH_AVX=${WITH_AVX} | ||
make -j `nproc` | ||
# because durning make install, there are several warning, so set +e, do not cause abort | ||
make install | ||
echo 'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}' >> /etc/profile | ||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} /usr/local/opt/paddle/share/wheels/*.whl | ||
paddle version # print version after build | ||
|
||
if [ ${WITH_DEMO} == "ON" ]; then | ||
apt-get install -y wget unzip perl python-matplotlib tar xz-utils bzip2 gzip coreutils\ | ||
sed grep graphviz libjpeg-dev zlib1g-dev | ||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} BeautifulSoup docopt \ | ||
PyYAML pillow | ||
fi | ||
if [ ${IS_DEVEL} == "OFF" ]; then # clean build packages. | ||
cd ~ | ||
rm -rf paddle | ||
fi | ||
apt-get clean -y | ||
trap : 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> | ||
COPY build.sh /root/ | ||
ENV WITH_GPU=OFF | ||
ENV IS_DEVEL=ON | ||
ENV WITH_DEMO=OFF | ||
ENV PIP_INSTALL_ARGS "" | ||
ENV PIP_GENERAL_ARGS "" | ||
ENV USE_UBUNTU_MIRROR OFF | ||
ENV WITH_AVX=OFF | ||
RUN cd /root/ && bash build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
function abort(){ | ||
echo "An error occurred. Exiting..." 1>&2 | ||
exit 1 | ||
} | ||
|
||
trap 'abort' 0 | ||
set -e | ||
if [ ${USE_UBUNTU_MIRROR} == "ON" ]; then | ||
sed -i 's#http://archive\.ubuntu\.com/ubuntu/#mirror://mirrors\.ubuntu\.com/mirrors\.txt#g'\ | ||
/etc/apt/sources.list | ||
fi | ||
apt-get update | ||
apt-get install -y cmake libprotobuf-dev protobuf-compiler git \ | ||
libgoogle-glog-dev libgflags-dev libatlas-dev libatlas3-base g++ m4 python-pip\ | ||
python-protobuf python-numpy python-dev swig | ||
|
||
if [ ${WITH_GPU} == 'ON' ]; then | ||
ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so /usr/lib/libcudnn.so | ||
fi | ||
|
||
cd ~ | ||
git clone https://github.com/baidu/Paddle.git paddle | ||
cd paddle | ||
mkdir build | ||
cd build | ||
cmake .. -DWITH_DOC=OFF -DWITH_GPU=${WITH_GPU} -DWITH_SWIG_PY=ON\ | ||
-DCUDNN_ROOT=/usr/ -DWITH_STYLE_CHECK=OFF -DWITH_AVX=${WITH_AVX} | ||
make -j `nproc` | ||
# because durning make install, there are several warning, so set +e, do not cause abort | ||
make install | ||
echo 'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}' >> /etc/profile | ||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} /usr/local/opt/paddle/share/wheels/*.whl | ||
paddle version # print version after build | ||
|
||
if [ ${WITH_DEMO} == "ON" ]; then | ||
apt-get install -y wget unzip perl python-matplotlib tar xz-utils bzip2 gzip coreutils\ | ||
sed grep graphviz libjpeg-dev zlib1g-dev | ||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} BeautifulSoup docopt \ | ||
PyYAML pillow | ||
fi | ||
if [ ${IS_DEVEL} == "OFF" ]; then # clean build packages. | ||
cd ~ | ||
rm -rf paddle | ||
fi | ||
apt-get clean -y | ||
trap : 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> | ||
COPY build.sh /root/ | ||
ENV WITH_GPU=OFF | ||
ENV IS_DEVEL=OFF | ||
ENV WITH_DEMO=OFF | ||
ENV PIP_INSTALL_ARGS "" | ||
ENV PIP_GENERAL_ARGS "" | ||
ENV USE_UBUNTU_MIRROR OFF | ||
ENV WITH_AVX=OFF | ||
RUN cd /root/ && bash build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
function abort(){ | ||
echo "An error occurred. Exiting..." 1>&2 | ||
exit 1 | ||
} | ||
|
||
trap 'abort' 0 | ||
set -e | ||
if [ ${USE_UBUNTU_MIRROR} == "ON" ]; then | ||
sed -i 's#http://archive\.ubuntu\.com/ubuntu/#mirror://mirrors\.ubuntu\.com/mirrors\.txt#g'\ | ||
/etc/apt/sources.list | ||
fi | ||
apt-get update | ||
apt-get install -y cmake libprotobuf-dev protobuf-compiler git \ | ||
libgoogle-glog-dev libgflags-dev libatlas-dev libatlas3-base g++ m4 python-pip\ | ||
python-protobuf python-numpy python-dev swig | ||
|
||
if [ ${WITH_GPU} == 'ON' ]; then | ||
ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so /usr/lib/libcudnn.so | ||
fi | ||
|
||
cd ~ | ||
git clone https://github.com/baidu/Paddle.git paddle | ||
cd paddle | ||
mkdir build | ||
cd build | ||
cmake .. -DWITH_DOC=OFF -DWITH_GPU=${WITH_GPU} -DWITH_SWIG_PY=ON\ | ||
-DCUDNN_ROOT=/usr/ -DWITH_STYLE_CHECK=OFF -DWITH_AVX=${WITH_AVX} | ||
make -j `nproc` | ||
# because durning make install, there are several warning, so set +e, do not cause abort | ||
make install | ||
echo 'export LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}' >> /etc/profile | ||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} /usr/local/opt/paddle/share/wheels/*.whl | ||
paddle version # print version after build | ||
|
||
if [ ${WITH_DEMO} == "ON" ]; then | ||
apt-get install -y wget unzip perl python-matplotlib tar xz-utils bzip2 gzip coreutils\ | ||
sed grep graphviz libjpeg-dev zlib1g-dev | ||
pip ${PIP_GENERAL_ARGS} install ${PIP_INSTALL_ARGS} BeautifulSoup docopt \ | ||
PyYAML pillow | ||
fi | ||
if [ ${IS_DEVEL} == "OFF" ]; then # clean build packages. | ||
cd ~ | ||
rm -rf paddle | ||
fi | ||
apt-get clean -y | ||
trap : 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04 | ||
MAINTAINER PaddlePaddle Dev Team <paddle-dev@baidu.com> | ||
COPY build.sh /root/ | ||
ENV WITH_GPU=ON | ||
ENV IS_DEVEL=ON | ||
ENV WITH_DEMO=ON | ||
ENV PIP_INSTALL_ARGS "" | ||
ENV PIP_GENERAL_ARGS "" | ||
ENV USE_UBUNTU_MIRROR OFF | ||
ENV WITH_AVX=OFF | ||
RUN cd /root/ && bash build.sh |
Oops, something went wrong.