Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
58e63124
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 2 年 前同步成功
通知
2325
Star
20933
Fork
5424
代码
文件
提交
分支
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看板
提交
58e63124
编写于
1月 21, 2019
作者:
T
tianshuo78520a
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update finction
上级
e297c39b
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
23 addition
and
23 deletion
+23
-23
paddle/scripts/fast_install.sh
paddle/scripts/fast_install.sh
+23
-23
未找到文件。
paddle/scripts/fast_install.sh
浏览文件 @
58e63124
...
@@ -20,7 +20,7 @@ function use_cpu(){
...
@@ -20,7 +20,7 @@ function use_cpu(){
done
done
}
}
function
check
_p
ython2
(){
function
check
MacP
ython2
(){
while
true
while
true
do
do
read
-p
"未发现除MacOS自带的python外的可用python,
read
-p
"未发现除MacOS自带的python外的可用python,
...
@@ -57,7 +57,7 @@ function check_python2(){
...
@@ -57,7 +57,7 @@ function check_python2(){
done
done
}
}
function
check
_p
ython3
(){
function
check
MacP
ython3
(){
while
true
while
true
do
do
read
-p
"未发现可用的python3,
read
-p
"未发现可用的python3,
...
@@ -94,7 +94,7 @@ function check_python3(){
...
@@ -94,7 +94,7 @@ function check_python3(){
done
done
}
}
function
check
_cudnn
(){
function
check
LinuxCUDNN
(){
while
true
while
true
do
do
version_file
=
'/usr/local/cuda/include/cudnn.h'
version_file
=
'/usr/local/cuda/include/cudnn.h'
...
@@ -151,7 +151,7 @@ function check_cudnn(){
...
@@ -151,7 +151,7 @@ function check_cudnn(){
done
done
}
}
function
check
_cuda
(){
function
check
LinuxCUDA
(){
while
true
while
true
do
do
CUDA
=
`
echo
${
CUDA_VERSION
}
|awk
-F
"[ .]"
'{print $1}'
`
CUDA
=
`
echo
${
CUDA_VERSION
}
|awk
-F
"[ .]"
'{print $1}'
`
...
@@ -222,7 +222,7 @@ function check_cuda(){
...
@@ -222,7 +222,7 @@ function check_cuda(){
done
done
}
}
function
math_l
ibrary
(){
function
checkLinuxMathL
ibrary
(){
while
true
while
true
do
do
if
[
"
$AVX
"
==
""
]
;
then
if
[
"
$AVX
"
==
""
]
;
then
...
@@ -255,7 +255,7 @@ function math_library(){
...
@@ -255,7 +255,7 @@ function math_library(){
done
done
}
}
function
paddle_develop
(){
function
checkLinuxPaddleVersion
(){
while
true
while
true
do
do
read
-p
"请选择Paddle版本:
read
-p
"请选择Paddle版本:
...
@@ -278,7 +278,7 @@ function paddle_develop(){
...
@@ -278,7 +278,7 @@ function paddle_develop(){
done
done
}
}
function
pip_check
(){
function
checkLinuxPip
(){
while
true
while
true
do
do
echo
"请输入您要使用的pip目录(您可以使用which pip来查看):"
echo
"请输入您要使用的pip目录(您可以使用which pip来查看):"
...
@@ -306,7 +306,7 @@ function pip_check(){
...
@@ -306,7 +306,7 @@ function pip_check(){
done
done
}
}
function
avx_check
(){
function
checkLinuxAVX
(){
while
true
while
true
do
do
if
[[
"
$AVX
"
!=
""
]]
;
then
if
[[
"
$AVX
"
!=
""
]]
;
then
...
@@ -324,7 +324,7 @@ function avx_check(){
...
@@ -324,7 +324,7 @@ function avx_check(){
done
done
}
}
function
pip_i
nstall
(){
function
PipLinuxI
nstall
(){
wheel_cpu_release
=
"http://paddle-wheel.bj.bcebos.com/
${
release_version
}
-
${
GPU
}
-
${
AVX
}
-
${
math
}
/paddlepaddle-
${
release_version
}
-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
wheel_cpu_release
=
"http://paddle-wheel.bj.bcebos.com/
${
release_version
}
-
${
GPU
}
-
${
AVX
}
-
${
math
}
/paddlepaddle-
${
release_version
}
-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
wheel_gpu_release
=
"http://paddle-wheel.bj.bcebos.com/
${
release_version
}
-gpu-cuda
${
CUDA
}
-cudnn
${
CUDNN
}
-
${
AVX
}
-
${
math
}
/paddlepaddle_gpu-
${
release_version
}
.post
${
CUDA
}${
CUDNN
}
-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
wheel_gpu_release
=
"http://paddle-wheel.bj.bcebos.com/
${
release_version
}
-gpu-cuda
${
CUDA
}
-cudnn
${
CUDNN
}
-
${
AVX
}
-
${
math
}
/paddlepaddle_gpu-
${
release_version
}
.post
${
CUDA
}${
CUDNN
}
-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
wheel_gpu_release_navx
=
"http://paddle-wheel.bj.bcebos.com/
${
release_version
}
-gpu-cuda
${
CUDA
}
-cudnn
${
CUDNN
}
-
${
AVX
}
-
${
math
}
/paddlepaddle_gpu-
${
release_version
}
-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
wheel_gpu_release_navx
=
"http://paddle-wheel.bj.bcebos.com/
${
release_version
}
-gpu-cuda
${
CUDA
}
-cudnn
${
CUDNN
}
-
${
AVX
}
-
${
math
}
/paddlepaddle_gpu-
${
release_version
}
-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
...
@@ -362,7 +362,7 @@ function pip_install(){
...
@@ -362,7 +362,7 @@ function pip_install(){
}
}
function
check
_gpu
(){
function
check
LinuxGPU
(){
AVX
=
`
cat
/proc/cpuinfo |grep avx|tail
-1
|grep avx
`
AVX
=
`
cat
/proc/cpuinfo |grep avx|tail
-1
|grep avx
`
which_gpu
=
`
lspci |grep
-i
nvidia
`
which_gpu
=
`
lspci |grep
-i
nvidia
`
if
[
"
$which_gpu
"
==
""
]
;
then
if
[
"
$which_gpu
"
==
""
]
;
then
...
@@ -373,8 +373,8 @@ function check_gpu(){
...
@@ -373,8 +373,8 @@ function check_gpu(){
echo
"您使用的是包含我们支持的GPU机器"
echo
"您使用的是包含我们支持的GPU机器"
fi
fi
if
[
"
$GPU
"
==
'gpu'
]
;
then
if
[
"
$GPU
"
==
'gpu'
]
;
then
check
_cuda
check
LinuxCUDA
check
_cudnn
check
LinuxCUDNN
fi
fi
}
}
...
@@ -575,14 +575,14 @@ gpu_list=("GeForce 410M"
...
@@ -575,14 +575,14 @@ gpu_list=("GeForce 410M"
"Tesla P4"
"Tesla P4"
"Tesla P40"
"Tesla P40"
"Tesla V100"
)
"Tesla V100"
)
check_gpu
checkLinuxGPU
math_library
checkLinuxMathLibrary
paddle_develop
checkLinuxPaddleVersion
pip_check
checkLinuxPip
avx_check
checkLinuxAVX
pip_install
PipLinuxInstall
}
}
function
checkMacPaddleVersion
(){
function
checkMacPaddleVersion
(){
while
true
while
true
do
do
...
@@ -622,7 +622,7 @@ function checkMacPythonVersion(){
...
@@ -622,7 +622,7 @@ function checkMacPythonVersion(){
python_version
=
""
python_version
=
""
fi
fi
if
[
"
$python_root
"
==
""
]||[
"
$python_root
"
==
"/usr/bin/python"
-a
"
$python_version
"
==
"Python 2.7.10"
]||[
"
$python_root
"
==
"/usr/bin/python2.7"
-a
"
$python_version
"
==
"Python 2.7.10"
]
;
then
if
[
"
$python_root
"
==
""
]||[
"
$python_root
"
==
"/usr/bin/python"
-a
"
$python_version
"
==
"Python 2.7.10"
]||[
"
$python_root
"
==
"/usr/bin/python2.7"
-a
"
$python_version
"
==
"Python 2.7.10"
]
;
then
check
_p
ython2
check
MacP
ython2
fi
fi
while
true
while
true
do
do
...
@@ -632,7 +632,7 @@ function checkMacPythonVersion(){
...
@@ -632,7 +632,7 @@ function checkMacPythonVersion(){
break
break
elif
[
"
$use_python
"
==
"n"
]
;
then
elif
[
"
$use_python
"
==
"n"
]
;
then
python_root
=
""
python_root
=
""
check
_p
ython2
check
MacP
ython2
break
break
else
else
echo
"输入错误,请重新输入"
echo
"输入错误,请重新输入"
...
@@ -648,7 +648,7 @@ function checkMacPythonVersion(){
...
@@ -648,7 +648,7 @@ function checkMacPythonVersion(){
python_version
=
""
python_version
=
""
fi
fi
if
[
"
$python_root
"
==
""
]||[
"
$python_root
"
==
"/usr/bin/python"
-a
"
$python_version
"
==
"Python 2.7.10"
]
;
then
if
[
"
$python_root
"
==
""
]||[
"
$python_root
"
==
"/usr/bin/python"
-a
"
$python_version
"
==
"Python 2.7.10"
]
;
then
check
_p
ython3
check
MacP
ython3
fi
fi
while
true
while
true
do
do
...
@@ -657,7 +657,7 @@ function checkMacPythonVersion(){
...
@@ -657,7 +657,7 @@ function checkMacPythonVersion(){
if
[
"
$use_python
"
==
"y"
]||[
"
$use_python
"
==
""
]
;
then
if
[
"
$use_python
"
==
"y"
]||[
"
$use_python
"
==
""
]
;
then
break
break
elif
[
"
$use_python
"
==
"n"
]
;
then
elif
[
"
$use_python
"
==
"n"
]
;
then
check
_p
ython3
check
MacP
ython3
break
break
else
else
echo
"输入错误,请重新输入"
echo
"输入错误,请重新输入"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录