Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
3308e3c4
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看板
提交
3308e3c4
编写于
1月 22, 2019
作者:
T
tianshuo78520a
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update python_list;test=develop
上级
4dde620e
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
17 addition
and
16 deletion
+17
-16
paddle/scripts/fast_install.sh
paddle/scripts/fast_install.sh
+17
-16
未找到文件。
paddle/scripts/fast_install.sh
浏览文件 @
3308e3c4
...
@@ -3,6 +3,13 @@
...
@@ -3,6 +3,13 @@
path
=
'http://paddlepaddle.org/download?url='
path
=
'http://paddlepaddle.org/download?url='
#release_version=`curl -s https://pypi.org/project/paddlepaddle/|grep -E "/project/paddlepaddle/"|grep "release"|awk -F '/' '{print $(NF-1)}'|head -1`
#release_version=`curl -s https://pypi.org/project/paddlepaddle/|grep -E "/project/paddlepaddle/"|grep "release"|awk -F '/' '{print $(NF-1)}'|head -1`
release_version
=
1.2.0
release_version
=
1.2.0
python_list
=(
"27"
"35"
"36"
"37"
)
function
use_cpu
(){
function
use_cpu
(){
while
true
while
true
...
@@ -314,14 +321,14 @@ function checkLinuxAVX(){
...
@@ -314,14 +321,14 @@ function checkLinuxAVX(){
while
true
while
true
do
do
if
[[
"
$AVX
"
!=
""
]]
;
then
if
[[
"
$AVX
"
!=
""
]]
;
then
AVX
=
avx
AVX
=
"avx"
break
break
else
else
if
[
"
$CUDA
"
==
"8"
-a
"
$CUDNN
"
==
"7"
]
||
[
"
$GPU
"
==
"cpu"
]
;
then
if
[
"
$CUDA
"
==
"8"
-a
"
$CUDNN
"
==
"7"
]
||
[
"
$GPU
"
==
"cpu"
]
;
then
AVX
=
navx
AVX
=
"noavx"
break
break
else
else
echo
"我们仅支持纯CPU或GPU with CUDA 8 cuDNN 7 下navx版本的安装,请使用cat /proc/cpuinfo | grep avx检查您计算机的avx指令集支持情况"
echo
"我们仅支持纯CPU或GPU with CUDA 8 cuDNN 7 下n
o
avx版本的安装,请使用cat /proc/cpuinfo | grep avx检查您计算机的avx指令集支持情况"
break
break
fi
fi
fi
fi
...
@@ -331,7 +338,7 @@ function checkLinuxAVX(){
...
@@ -331,7 +338,7 @@ function checkLinuxAVX(){
function
PipLinuxInstall
(){
function
PipLinuxInstall
(){
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_n
o
avx
=
"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_cpu_develop
=
"http://paddle-wheel.bj.bcebos.com/latest-cpu-
${
AVX
}
-
${
math
}
/paddlepaddle-latest-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
wheel_cpu_develop
=
"http://paddle-wheel.bj.bcebos.com/latest-cpu-
${
AVX
}
-
${
math
}
/paddlepaddle-latest-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
wheel_gpu_develop
=
"http://paddle-wheel.bj.bcebos.com/latest-gpu-cuda
${
CUDA
}
-cudnn
${
CUDNN
}
-
${
AVX
}
-
${
math
}
/paddlepaddle_gpu-latest-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
wheel_gpu_develop
=
"http://paddle-wheel.bj.bcebos.com/latest-gpu-cuda
${
CUDA
}
-cudnn
${
CUDNN
}
-
${
AVX
}
-
${
math
}
/paddlepaddle_gpu-latest-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
...
@@ -345,7 +352,7 @@ function PipLinuxInstall(){
...
@@ -345,7 +352,7 @@ function PipLinuxInstall(){
else
else
rm
-rf
`
echo
$wheel_cpu_release_nvax
|awk
-F
'/'
'{print $NF}'
`
rm
-rf
`
echo
$wheel_cpu_release_nvax
|awk
-F
'/'
'{print $NF}'
`
wget
$wheel_cpu_release_nvax
wget
$wheel_cpu_release_nvax
$pip_path
install
--user
-i
https://mirrors.aliyun.com/pypi/simple
--trusted-host
=
mirrors.aliyun.com
$wheel_gpu_release_navx
$pip_path
install
--user
-i
https://mirrors.aliyun.com/pypi/simple
--trusted-host
=
mirrors.aliyun.com
$wheel_gpu_release_n
o
avx
fi
fi
else
else
rm
-rf
`
echo
$wheel_cpu_develop
|awk
-F
'/'
'{print $NF}'
`
rm
-rf
`
echo
$wheel_cpu_develop
|awk
-F
'/'
'{print $NF}'
`
...
@@ -383,13 +390,6 @@ function checkLinuxGPU(){
...
@@ -383,13 +390,6 @@ function checkLinuxGPU(){
}
}
function
linux
(){
function
linux
(){
python_list
=(
"27"
"35"
"36"
"37"
)
gpu_list
=(
gpu_list
=(
"GeForce 410M"
"GeForce 410M"
"GeForce 610M"
"GeForce 610M"
...
@@ -685,12 +685,13 @@ function checkMacPythonVersion(){
...
@@ -685,12 +685,13 @@ function checkMacPythonVersion(){
if
[[
$python_brief_version
==
"27"
]]
;
then
if
[[
$python_brief_version
==
"27"
]]
;
then
uncode
=
`
python
-c
"import pip._internal;print(pip._internal.pep425tags.get_supported())"
|grep
"cp27"
`
uncode
=
`
python
-c
"import pip._internal;print(pip._internal.pep425tags.get_supported())"
|grep
"cp27"
`
if
[[
$uncode
==
""
]]
;
then
if
[[
$uncode
==
""
]]
;
then
uncode
=
mu
uncode
=
"mu"
else
else
uncode
=
m
uncode
=
"m"
fi
fi
fi
fi
version_list
=
`
echo
"
${
python_list
[@]
}
"
|
grep
"
$python_version
"
`
echo
${
python_list
[@]
}
version_list
=
`
echo
"
${
python_list
[@]
}
"
|
grep
"
$python_brief_version
"
`
if
[
"
$version_list
"
!=
""
]
;
then
if
[
"
$version_list
"
!=
""
]
;
then
break
break
else
else
...
@@ -704,7 +705,7 @@ function checkMacPythonVersion(){
...
@@ -704,7 +705,7 @@ function checkMacPythonVersion(){
function
checkMacAVX
(){
function
checkMacAVX
(){
if
[[
$AVX
!=
""
]]
;
then
if
[[
$AVX
!=
""
]]
;
then
AVX
=
avx
AVX
=
"avx"
else
else
echo
"您的Mac不支持AVX指令集,目前不能安装PaddlePaddle"
echo
"您的Mac不支持AVX指令集,目前不能安装PaddlePaddle"
fi
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录