Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
adca05f2
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
adca05f2
编写于
7月 02, 2021
作者:
zhouweiwei2014
提交者:
GitHub
7月 02, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[cherry-pick2.1]polish avx/no_avx install error message (#33818) (#33905)
cherry-pick #33818
上级
aa12737b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
17 deletion
+10
-17
python/paddle/fluid/core.py
python/paddle/fluid/core.py
+10
-17
未找到文件。
python/paddle/fluid/core.py
浏览文件 @
adca05f2
...
@@ -298,17 +298,13 @@ if avx_supported():
...
@@ -298,17 +298,13 @@ if avx_supported():
else
:
else
:
from
..
import
compat
as
cpt
from
..
import
compat
as
cpt
sys
.
stderr
.
write
(
sys
.
stderr
.
write
(
"WARNING: AVX is supported on local machine, but you have installed "
"Hint: Your machine support AVX, but the installed paddlepaddle doesn't have avx core. "
"paddlepaddle without avx core. Hence, no_avx core which has worse "
"Hence, no-avx core with worse preformance will be imported.
\n
If you like, you could "
"preformance will be imported.
\n
You could reinstall paddlepaddle by "
"reinstall paddlepaddle by 'python -m pip install --force-reinstall paddlepaddle-gpu[==version]' "
"'python -m pip install --force-reinstall paddlepaddle-gpu[==version]' or rebuild "
"to get better performance.
\n
The original error is: %s
\n
"
%
"paddlepaddle WITH_AVX=ON to get better performance.
\n
"
cpt
.
get_exception_message
(
e
))
"The original error is: %s
\n
"
%
cpt
.
get_exception_message
(
e
))
load_noavx
=
True
load_noavx
=
True
else
:
else
:
sys
.
stderr
.
write
(
"WARNING: AVX is not support on your machine. Hence, no_avx core will be imported, "
"It has much worse preformance than avx core.
\n
"
)
load_noavx
=
True
load_noavx
=
True
if
load_noavx
:
if
load_noavx
:
...
@@ -355,17 +351,14 @@ if load_noavx:
...
@@ -355,17 +351,14 @@ if load_noavx:
current_path
+
os
.
sep
+
'core_noavx.'
+
core_suffix
+
'
\n
'
)
current_path
+
os
.
sep
+
'core_noavx.'
+
core_suffix
+
'
\n
'
)
elif
avx_supported
():
elif
avx_supported
():
sys
.
stderr
.
write
(
sys
.
stderr
.
write
(
"Error: AVX is support on your machine, but you have installed "
"Error: The installed PaddlePaddle is incorrect. You should reinstall it by "
"paddlepaddle without avx core, you should reinstall paddlepaddle by "
"'python -m pip install --force-reinstall paddlepaddle-gpu[==version]'
\n
"
"'python -m pip install --force-reinstall paddlepaddle-gpu[==version]
\n
"
)
)
else
:
else
:
sys
.
stderr
.
write
(
sys
.
stderr
.
write
(
"Error: AVX is not support on your machine, but you have installed "
"Error: Your machine doesn't support AVX, but the installed PaddlePaddle is avx core, "
"paddlepaddle without no_avx core, you should reinstall paddlepaddle by "
"you should reinstall paddlepaddle with no-avx core.
\n
"
)
"'python -m pip install --force-reinstall paddlepaddle-gpu[==version] -f "
"https://paddlepaddle.org.cn/whl/mkl/stable/noavx.html or "
"https://paddlepaddle.org.cn/whl/openblas/stable/noavx.html
\n
"
)
raise
e
raise
e
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录