Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MegEngine 天元
MegEngine
提交
3591ef1f
MegEngine
项目概览
MegEngine 天元
/
MegEngine
接近 2 年 前同步成功
通知
414
Star
4708
Fork
583
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
MegEngine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
3591ef1f
编写于
5月 21, 2021
作者:
M
Megvii Engine Team
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(mgb): fix conv cudnnconvbackwarddata algo witch is not shake
GitOrigin-RevId: 379bfbe376563bacb50f38734fa44ff9a331a36b
上级
e417798f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
4 deletion
+14
-4
dnn/src/cuda/cudnn_wrapper.cpp
dnn/src/cuda/cudnn_wrapper.cpp
+4
-0
src/opr/impl/search_policy/algo_chooser.cpp
src/opr/impl/search_policy/algo_chooser.cpp
+10
-4
未找到文件。
dnn/src/cuda/cudnn_wrapper.cpp
浏览文件 @
3591ef1f
...
...
@@ -485,7 +485,11 @@ CudnnAlgoPack::conv_bwd_data_algos() {
CudnnAlgoPack
::
Attr
>
algos
=
{
DEF_ALGO
(
CUDNN_CONVOLUTION_BWD_DATA_ALGO_0
,
false
,
false
),
#if CUDNN_VERSION == 8004
DEF_ALGO
(
CUDNN_CONVOLUTION_BWD_DATA_ALGO_1
,
true
,
true
),
#else
DEF_ALGO
(
CUDNN_CONVOLUTION_BWD_DATA_ALGO_1
,
true
,
false
),
#endif
DEF_ALGO
(
CUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT
,
true
,
true
),
DEF_ALGO
(
CUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT_TILING
,
true
,
true
),
#if CUDNN_MAJOR >= 5
...
...
src/opr/impl/search_policy/algo_chooser.cpp
浏览文件 @
3591ef1f
...
...
@@ -471,16 +471,22 @@ AlgoChooser<Opr>::AlgoChooserHelper::get_profile_result_from_cache(
}
}
std
::
string
layouts_str
=
format_fixlayouts
<
Opr
>
(
m_layouts
,
arity_in
,
arity_out
);
if
(
skip_by_negative
)
{
mgb_log_error
(
"No usable algo. There are available algos match positive "
"strategy(%s), but filtered by negative stategy(%s)."
,
"opr: %s, layouts: %s, No usable algo. There are available algos match "
"positive strategy(%s), but filtered by negative stategy(%s)."
,
m_base_mgb_opr
->
dyn_typeinfo
()
->
name
,
layouts_str
.
c_str
(),
Algorithm
::
attribute_str
(
target_attr
.
first
).
c_str
(),
Algorithm
::
attribute_str
(
target_attr
.
second
).
c_str
());
}
else
{
mgb_log_error
(
"No usable algo. algos read from cache could not satisfy "
"positive strategy(%s)"
,
"opr: %s, layouts: %s, No usable algo. algos read from cache could not "
"satisfy positive strategy(%s)"
,
m_base_mgb_opr
->
dyn_typeinfo
()
->
name
,
layouts_str
.
c_str
(),
Algorithm
::
attribute_str
(
target_attr
.
first
).
c_str
());
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录