Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MegEngine 天元
MegEngine
提交
04475744
MegEngine
项目概览
MegEngine 天元
/
MegEngine
1 年多 前同步成功
通知
403
Star
4705
Fork
582
代码
文件
提交
分支
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看板
提交
04475744
编写于
3月 08, 2022
作者:
M
Megvii Engine Team
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(opencl): add OpenCL cache compat level api
GitOrigin-RevId: e7561e6879bcdbfee52d48387c8ec2a7f21a91d6
上级
6fb5a343
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
2 deletion
+20
-2
lite/include/lite/common_enum_c.h
lite/include/lite/common_enum_c.h
+18
-0
lite/load_and_run/src/options/device_options.cpp
lite/load_and_run/src/options/device_options.cpp
+1
-1
lite/load_and_run/src/options/device_options.h
lite/load_and_run/src/options/device_options.h
+1
-1
未找到文件。
lite/include/lite/common_enum_c.h
浏览文件 @
04475744
...
@@ -105,5 +105,23 @@ typedef enum {
...
@@ -105,5 +105,23 @@ typedef enum {
LITE_ALGO_OPTIMIZED
=
1
<<
3
,
LITE_ALGO_OPTIMIZED
=
1
<<
3
,
}
LiteAlgoSelectStrategy
;
}
LiteAlgoSelectStrategy
;
/*!
* \brief enum for cache compat level, for example: adreno 630 cache may be apply to
* adreno 640, if you do not want search cache for adreno 640, just config SERIES_COMPAT
* or VENDOR_COMPAT, adreno 506 cache may be apply to adreno 630, if you do not want
* search cache for adreno 630, just config VENDOR_COMPAT
* WARN: this config just let program_cache_io try `use a old cache` for `device compile
* the cache` do not means MegEngine will insure the compile will be ok! it`s a device
* CL driver behavior, if compile failed!, MegEngine will try build from source, What`s
* more, even though compile from binary success, this cross-use-cache may affect
* performance, VENDOR_COMPAT will contain SERIES_COMPAT
*/
typedef
enum
{
LITE_NOT_COMPAT
=
0
,
//! default not compat for series and vendor
LITE_SERIES_COMPAT
=
1
,
//! for scene adreno 640 use adreno 630 cache
LITE_VENDOR_COMPAT
=
2
,
//! for scene adreno 630 use adreno 506 cache
LITE_CACHE_COMPAT_LEVEL_CNT
=
3
}
LiteOpenCLCacheCompatLevel
;
#endif
#endif
// vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}
// vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}
lite/load_and_run/src/options/device_options.cpp
浏览文件 @
04475744
...
@@ -201,4 +201,4 @@ DEFINE_int32(
...
@@ -201,4 +201,4 @@ DEFINE_int32(
multithread_default
,
-
1
,
multithread_default
,
-
1
,
"set multithread device as running device with inplace mode"
);
"set multithread device as running device with inplace mode"
);
DEFINE_string
(
multi_thread_core_ids
,
""
,
"set multithread core id"
);
DEFINE_string
(
multi_thread_core_ids
,
""
,
"set multithread core id"
);
REGIST_OPTION_CREATOR
(
xpu_device
,
lar
::
XPUDeviceOption
::
create_option
);
REGIST_OPTION_CREATOR
(
xpu_device
,
lar
::
XPUDeviceOption
::
create_option
);
\ No newline at end of file
lite/load_and_run/src/options/device_options.h
浏览文件 @
04475744
...
@@ -45,4 +45,4 @@ private:
...
@@ -45,4 +45,4 @@ private:
std
::
vector
<
int
>
core_ids
;
std
::
vector
<
int
>
core_ids
;
std
::
string
m_option_name
;
std
::
string
m_option_name
;
};
};
}
// namespace lar
}
// namespace lar
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录