Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
5eeb1870
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
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看板
提交
5eeb1870
编写于
3月 18, 2017
作者:
Y
Yancey1989
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
delete deb path
上级
d4a204e4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
0 addition
and
64 deletion
+0
-64
paddle/scripts/deb/build_scripts/.gitignore
paddle/scripts/deb/build_scripts/.gitignore
+0
-1
paddle/scripts/deb/build_scripts/Dockerfile
paddle/scripts/deb/build_scripts/Dockerfile
+0
-5
paddle/scripts/deb/build_scripts/build.sh
paddle/scripts/deb/build_scripts/build.sh
+0
-43
paddle/scripts/deb/build_scripts/build_deb.sh
paddle/scripts/deb/build_scripts/build_deb.sh
+0
-8
paddle/scripts/deb/postinst
paddle/scripts/deb/postinst
+0
-7
未找到文件。
paddle/scripts/deb/build_scripts/.gitignore
已删除
100644 → 0
浏览文件 @
d4a204e4
dist
paddle/scripts/deb/build_scripts/Dockerfile
已删除
100644 → 0
浏览文件 @
d4a204e4
FROM
paddledev/paddle:gpu-latest
MAINTAINER
PaddlePaddle Dev Team <paddle-dev@baidu.com>
COPY
build.sh /root/
CMD
cd /root/ && bash build.sh
paddle/scripts/deb/build_scripts/build.sh
已删除
100755 → 0
浏览文件 @
d4a204e4
#!/bin/bash
set
-e
ARCH
=
$(
uname
-i
)
apt-get update
apt-get
install
-y
dh-make
cd
~
mkdir
-p
~/dist/gpu
mkdir
-p
~/dist/cpu
mkdir
-p
~/dist/cpu-noavx
mkdir
-p
~/dist/gpu-noavx
cd
paddle
# clean build dir and third_party dir cache
rm
-rf
build third_party
mkdir
-p
build
cd
build
cmake ..
-DWITH_GPU
=
OFF
-DWITH_SWIG_PY
=
ON
-DWITH_AVX
=
ON
-DWITH_SWIG_PY
=
ON
-DWITH_STYLE_CHECK
=
OFF
-DCMAKE_EXPORT_COMPILE_COMMANDS
=
ON
make
-j
`
nproc
`
# FIXME(typhoonzero): add ARCH gpu noavx flag to CPACK_SYSTEM_NAME. Why -D not affect anything?
cpack
-D
CPACK_GENERATOR
=
'DEB'
..
mv
*
.deb ~/dist/cpu
rm
-rf
*
ln
-s
/usr/lib/x86_64-linux-gnu/libcudnn.so /usr/lib/libcudnn.so
cmake ..
-DWITH_GPU
=
ON
-DWITH_SWIG_PY
=
ON
-DWITH_AVX
=
ON
-DCUDNN_ROOT
=
/usr/
-DWITH_SWIG_PY
=
ON
-DWITH_STYLE_CHECK
=
OFF
-DCMAKE_EXPORT_COMPILE_COMMANDS
=
ON
make
-j
`
nproc
`
cpack
-D
CPACK_GENERATOR
=
'DEB'
..
mv
*
.deb ~/dist/gpu
rm
-rf
*
rm
-f
/usr/lib/libcudnn.so
cmake ..
-DWITH_GPU
=
OFF
-DWITH_SWIG_PY
=
ON
-DWITH_AVX
=
OFF
-DWITH_SWIG_PY
=
ON
-DWITH_STYLE_CHECK
=
OFF
-DCMAKE_EXPORT_COMPILE_COMMANDS
=
ON
make
-j
`
nproc
`
cpack
-D
CPACK_GENERATOR
=
'DEB'
..
mv
*
.deb ~/dist/cpu-noavx
rm
-rf
*
ln
-s
/usr/lib/x86_64-linux-gnu/libcudnn.so /usr/lib/libcudnn.so
cmake ..
-DWITH_GPU
=
ON
-DWITH_SWIG_PY
=
ON
-DWITH_AVX
=
OFF
-DCUDNN_ROOT
=
/usr/
-DWITH_SWIG_PY
=
ON
-DWITH_STYLE_CHECK
=
OFF
-DCMAKE_EXPORT_COMPILE_COMMANDS
=
ON
make
-j
`
nproc
`
cpack
-D
CPACK_GENERATOR
=
'DEB'
..
mv
*
.deb ~/dist/gpu-noavx
paddle/scripts/deb/build_scripts/build_deb.sh
已删除
100755 → 0
浏览文件 @
d4a204e4
#!/bin/bash
set
-e
docker build
-t
build_paddle_deb
.
rm
-rf
dist
mkdir
-p
dist
docker run
-v
$PWD
/dist:/root/dist
-v
$PWD
/../../../..:/root/paddle
--name
tmp_build_deb_container build_paddle_deb
docker
rm
tmp_build_deb_container
docker rmi build_paddle_deb
paddle/scripts/deb/postinst
已删除
100644 → 0
浏览文件 @
d4a204e4
#!/bin/bash
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."
pip
install
/usr/opt/paddle/share/wheels/
*
.whl
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录