Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
da018e31
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
da018e31
编写于
1月 22, 2018
作者:
D
dangqingqing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove boost installing step and remove boost installation in Dockerfile scripts.
上级
dd5e8d6c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
33 deletion
+10
-33
CMakeLists.txt
CMakeLists.txt
+0
-1
Dockerfile
Dockerfile
+1
-1
cmake/external/boost.cmake
cmake/external/boost.cmake
+8
-30
tools/manylinux1/Dockerfile.x64
tools/manylinux1/Dockerfile.x64
+1
-1
未找到文件。
CMakeLists.txt
浏览文件 @
da018e31
...
@@ -159,7 +159,6 @@ include_directories("${PADDLE_SOURCE_DIR}")
...
@@ -159,7 +159,6 @@ include_directories("${PADDLE_SOURCE_DIR}")
include_directories
(
"
${
PADDLE_SOURCE_DIR
}
/paddle/cuda/include"
)
include_directories
(
"
${
PADDLE_SOURCE_DIR
}
/paddle/cuda/include"
)
include_directories
(
"
${
CMAKE_CURRENT_BINARY_DIR
}
/proto"
)
include_directories
(
"
${
CMAKE_CURRENT_BINARY_DIR
}
/proto"
)
include_directories
(
"
${
CMAKE_CURRENT_BINARY_DIR
}
/go/pserver/client/c"
)
include_directories
(
"
${
CMAKE_CURRENT_BINARY_DIR
}
/go/pserver/client/c"
)
include_directories
(
${
Boost_INCLUDE_DIRS
}
)
set
(
EXTERNAL_LIBS
set
(
EXTERNAL_LIBS
${
GFLAGS_LIBRARIES
}
${
GFLAGS_LIBRARIES
}
...
...
Dockerfile
浏览文件 @
da018e31
...
@@ -27,7 +27,7 @@ RUN apt-get update && \
...
@@ -27,7 +27,7 @@ RUN apt-get update && \
curl
sed grep
graphviz libjpeg-dev zlib1g-dev
\
curl
sed grep
graphviz libjpeg-dev zlib1g-dev
\
python-matplotlib gcc-4.8 g++-4.8
\
python-matplotlib gcc-4.8 g++-4.8
\
automake locales clang-format swig doxygen cmake
\
automake locales clang-format swig doxygen cmake
\
liblapack-dev liblapacke-dev
libboost-dev
\
liblapack-dev liblapacke-dev
\
clang-3.8 llvm-3.8 libclang-3.8-dev
\
clang-3.8 llvm-3.8 libclang-3.8-dev
\
net-tools libtool
&&
\
net-tools libtool
&&
\
apt-get clean
-y
apt-get clean
-y
...
...
cmake/external/boost.cmake
浏览文件 @
da018e31
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
INCLUDE
(
ExternalProject
)
include
(
ExternalProject
)
set
(
BOOST_PROJECT
"extern_boost"
)
set
(
BOOST_PROJECT
"extern_boost"
)
set
(
BOOST_VER
"1.66.0"
)
set
(
BOOST_VER
"1.66.0"
)
...
@@ -20,24 +20,9 @@ set(BOOST_TAR "boost_1_66_0")
...
@@ -20,24 +20,9 @@ set(BOOST_TAR "boost_1_66_0")
set
(
BOOST_URL
"https://dl.bintray.com/boostorg/release/
${
BOOST_VER
}
/source/
${
BOOST_TAR
}
.tar.gz"
)
set
(
BOOST_URL
"https://dl.bintray.com/boostorg/release/
${
BOOST_VER
}
/source/
${
BOOST_TAR
}
.tar.gz"
)
set
(
BOOST_SOURCES_DIR
${
THIRD_PARTY_PATH
}
/boost
)
set
(
BOOST_SOURCES_DIR
${
THIRD_PARTY_PATH
}
/boost
)
set
(
BOOST_DOWNLOAD_DIR
"
${
BOOST_SOURCES_DIR
}
/src/
${
BOOST_PROJECT
}
"
)
set
(
BOOST_DOWNLOAD_DIR
"
${
BOOST_SOURCES_DIR
}
/src/
${
BOOST_PROJECT
}
"
)
set
(
BOOST_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/boost
)
set
(
BOOST_INCLUDE_DIR
"
${
BOOST_DOWNLOAD_DIR
}
/
${
BOOST_TAR
}
"
CACHE PATH
"boost include directory."
FORCE
)
set
(
BOOST_ROOT
${
BOOST_INSTALL_DIR
}
CACHE FILEPATH
"boost root directory."
FORCE
)
set
(
BOOST_INCLUDE_DIR
"
${
BOOST_INSTALL_DIR
}
/include"
CACHE PATH
"boost include directory."
FORCE
)
set
(
BOOST_BOOTSTRAP_CMD
)
include_directories
(
${
BOOST_INCLUDE_DIR
}
)
set
(
BOOST_B2_CMD
)
if
(
UNIX
)
set
(
BOOST_BOOTSTRAP_CMD ./bootstrap.sh
)
set
(
BOOST_B2_CMD ./b2
)
else
()
if
(
WIN32
)
set
(
BOOST_BOOTSTRAP_CMD bootstrap.bat
)
set
(
BOOST_B2_CMD b2.exe
)
endif
()
endif
()
INCLUDE_DIRECTORIES
(
${
BOOST_INCLUDE_DIR
}
)
ExternalProject_Add
(
ExternalProject_Add
(
${
BOOST_PROJECT
}
${
BOOST_PROJECT
}
...
@@ -47,8 +32,8 @@ ExternalProject_Add(
...
@@ -47,8 +32,8 @@ ExternalProject_Add(
&& tar zxf
${
BOOST_TAR
}
.tar.gz
&& tar zxf
${
BOOST_TAR
}
.tar.gz
DOWNLOAD_NO_PROGRESS 1
DOWNLOAD_NO_PROGRESS 1
PREFIX
${
BOOST_SOURCES_DIR
}
PREFIX
${
BOOST_SOURCES_DIR
}
CONFIGURE_COMMAND
sh -c
"cd <SOURCE_DIR>/
${
BOOST_TAR
}
&&
${
BOOST_BOOTSTRAP_CMD
}
--prefix=
${
BOOST_INSTALL_DIR
}
"
CONFIGURE_COMMAND
"
"
BUILD_COMMAND
cd <SOURCE_DIR>/
${
BOOST_TAR
}
&&
${
BOOST_B2_CMD
}
install --prefix=
${
BOOST_INSTALL_DIR
}
--with-program_options
BUILD_COMMAND
""
INSTALL_COMMAND
""
INSTALL_COMMAND
""
UPDATE_COMMAND
""
UPDATE_COMMAND
""
)
)
...
@@ -61,13 +46,6 @@ else()
...
@@ -61,13 +46,6 @@ else()
add_library
(
boost INTERFACE
)
add_library
(
boost INTERFACE
)
endif
()
endif
()
ADD_DEPENDENCIES
(
boost
${
BOOST_PROJECT
}
)
add_dependencies
(
boost
${
BOOST_PROJECT
}
)
LIST
(
APPEND external_project_dependencies boost
)
list
(
APPEND external_project_dependencies boost
)
if
(
WIN32
)
set
(
Boost_INCLUDE_DIR
${
BOOST_INCLUDE_DIR
}
)
set
(
Boost_INCLUDE_DIR
${
BOOST_INSTALL_DIR
}
/include/boost
)
set
(
BOOST_ROOT
${
BOOST_INSTALL_DIR
}
)
else
()
set
(
Boost_INCLUDE_DIR
${
BOOST_INSTALL_DIR
}
/include
)
endif
()
set
(
Boost_LIBRARY_DIR
${
BOOST_INSTALL_DIR
}
/lib
)
tools/manylinux1/Dockerfile.x64
浏览文件 @
da018e31
...
@@ -35,7 +35,7 @@ RUN cd /opt && wget -q --no-check-certificate https://github.com/google/protobuf
...
@@ -35,7 +35,7 @@ RUN cd /opt && wget -q --no-check-certificate https://github.com/google/protobuf
cd protobuf-3.1.0 && ./configure && make -j4 && make install && cd .. && rm -f protobuf-cpp-3.1.0.tar.gz
cd protobuf-3.1.0 && ./configure && make -j4 && make install && cd .. && rm -f protobuf-cpp-3.1.0.tar.gz
RUN yum install -y sqlite-devel zlib-devel openssl-devel
boost boost-devel
pcre-devel vim tk-devel tkinter libtool
RUN yum install -y sqlite-devel zlib-devel openssl-devel pcre-devel vim tk-devel tkinter libtool
RUN wget -O /root/requirements.txt https://raw.githubusercontent.com/PaddlePaddle/Paddle/develop/python/requirements.txt
RUN wget -O /root/requirements.txt https://raw.githubusercontent.com/PaddlePaddle/Paddle/develop/python/requirements.txt
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录