Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
2e908225
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看板
未验证
提交
2e908225
编写于
1月 01, 2020
作者:
C
Chen Weihang
提交者:
GitHub
1月 01, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
polish default error msg & cublas error hint, test=develop (#22032)
上级
9a2204ee
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
17 addition
and
12 deletion
+17
-12
paddle/fluid/platform/enforce.h
paddle/fluid/platform/enforce.h
+9
-9
paddle/fluid/platform/errors.h
paddle/fluid/platform/errors.h
+8
-3
未找到文件。
paddle/fluid/platform/enforce.h
浏览文件 @
2e908225
...
...
@@ -433,23 +433,23 @@ inline std::string build_ex_string(cublasStatus_t stat,
const
std
::
string
&
msg
)
{
std
::
string
err
;
if
(
stat
==
CUBLAS_STATUS_NOT_INITIALIZED
)
{
err
=
"CUBLAS
: not initialized.
"
;
err
=
"CUBLAS
_STATUS_NOT_INITIALIZED
"
;
}
else
if
(
stat
==
CUBLAS_STATUS_ALLOC_FAILED
)
{
err
=
"CUBLAS
: alloc failed.
"
;
err
=
"CUBLAS
_STATUS_ALLOC_FAILED
"
;
}
else
if
(
stat
==
CUBLAS_STATUS_INVALID_VALUE
)
{
err
=
"CUBLAS
: invalid value.
"
;
err
=
"CUBLAS
_STATUS_INVALID_VALUE
"
;
}
else
if
(
stat
==
CUBLAS_STATUS_ARCH_MISMATCH
)
{
err
=
"CUBLAS
: arch mismatch.
"
;
err
=
"CUBLAS
_STATUS_ARCH_MISMATCH
"
;
}
else
if
(
stat
==
CUBLAS_STATUS_MAPPING_ERROR
)
{
err
=
"CUBLAS
: mapping error.
"
;
err
=
"CUBLAS
_STATUS_MAPPING_ERROR
"
;
}
else
if
(
stat
==
CUBLAS_STATUS_EXECUTION_FAILED
)
{
err
=
"CUBLAS
: execution failed.
"
;
err
=
"CUBLAS
_STATUS_EXECUTION_FAILED
"
;
}
else
if
(
stat
==
CUBLAS_STATUS_INTERNAL_ERROR
)
{
err
=
"CUBLAS
: internal error.
"
;
err
=
"CUBLAS
_STATUS_INTERNAL_ERROR
"
;
}
else
if
(
stat
==
CUBLAS_STATUS_NOT_SUPPORTED
)
{
err
=
"CUBLAS
: not supported,
"
;
err
=
"CUBLAS
_STATUS_NOT_SUPPORTED
"
;
}
else
if
(
stat
==
CUBLAS_STATUS_LICENSE_ERROR
)
{
err
=
"CUBLAS
: license error.
"
;
err
=
"CUBLAS
_STATUS_LICENSE_ERROR
"
;
}
return
msg
+
"
\n
[Hint: "
+
err
+
"]"
;
}
...
...
paddle/fluid/platform/errors.h
浏览文件 @
2e908225
...
...
@@ -36,9 +36,14 @@ class ErrorSummary {
ErrorSummary
()
{
code_
=
paddle
::
platform
::
error
::
LEGACY
;
msg_
=
"Paddle internal Check failed. (Please help us create a new issue, "
"here we need to find the developer to add a user friendly error "
"message)"
;
"An error occurred here. There is no accurate error hint for this "
"error yet. We are continuously in the process of increasing hint for "
"this kind of error check. It would be helpful if you could inform us "
"of how this conversion went by opening a github issue. And we will "
"resolve it with high priority.
\n
"
" - New issue link: "
"https://github.com/PaddlePaddle/Paddle/issues/new
\n
"
" - Recommended issue content: all error stack information"
;
}
// Note(chenweihang): Final deprecated constructor
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录