Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaomi
Mace
提交
33310ee8
Mace
项目概览
Xiaomi
/
Mace
通知
107
Star
40
Fork
27
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Mace
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
33310ee8
编写于
1月 03, 2018
作者:
Y
yejianwu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update opencl linkage lib
上级
c379f31d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
30 addition
and
12 deletion
+30
-12
mace/codegen/BUILD
mace/codegen/BUILD
+8
-10
mace/core/BUILD
mace/core/BUILD
+22
-0
mace/core/runtime/opencl/opencl_binary_linkage.cc
mace/core/runtime/opencl/opencl_binary_linkage.cc
+0
-0
mace/core/runtime/opencl/opencl_source_linkage.cc
mace/core/runtime/opencl/opencl_source_linkage.cc
+0
-0
tools/validate_gcn.sh
tools/validate_gcn.sh
+0
-2
未找到文件。
mace/codegen/BUILD
浏览文件 @
33310ee8
...
...
@@ -15,27 +15,25 @@ cc_library(
deps
=
[
"//mace/core"
,
"//mace/ops"
,
"//mace/codegen:distribute_lib"
,
]
+
if_embed_binary_program
([
"//mace/core:opencl_binary_linkage"
])
+
if_use_source_program
([
"//mace/core:opencl_source_linkage"
])
+
[
"//mace/codegen:version_lib"
,
"//mace/codegen:generated_opencl_lib"
,
"//mace/codegen:generated_opencl_source_lib"
,
"//mace/codegen:generated_opencl_compiled_lib"
,
"//mace/codegen:generated_tuning_lib"
,
],
)
cc_library
(
name
=
"distribute_lib"
,
srcs
=
if_embed_binary_program
([
"distribute/use_binary.cc"
])
+
if_use_source_program
([
"distribute/use_source.cc"
]),
name
=
"generated_opencl_source_lib"
,
srcs
=
glob
([
"opencl/opencl_encrypt_program.cc"
]),
copts
=
[
"-std=c++11"
,
"-D_GLIBCXX_USE_C99_MATH_TR1"
,
"-Werror=return-type"
],
linkstatic
=
1
,
deps
=
[
"//mace/core"
,
],
)
cc_library
(
name
=
"generated_opencl_lib"
,
srcs
=
glob
([
"opencl/
*
.cc"
]),
name
=
"generated_opencl_
compiled_
lib"
,
srcs
=
glob
([
"opencl/
opencl_compiled_program
.cc"
]),
copts
=
[
"-std=c++11"
,
"-D_GLIBCXX_USE_C99_MATH_TR1"
,
"-Werror=return-type"
],
linkstatic
=
1
,
)
...
...
mace/core/BUILD
浏览文件 @
33310ee8
...
...
@@ -14,6 +14,8 @@ cc_library(
srcs
=
glob
([
"*.cc"
,
"runtime/opencl/*.cc"
,
],
exclude
=
[
"runtime/opencl/opencl_binary_linkage.cc"
,
"runtime/opencl/opencl_source_linkage.cc"
,
]),
hdrs
=
glob
([
"*.h"
,
...
...
@@ -49,3 +51,23 @@ cc_library(
"//mace/utils:utils_hdrs"
,
],
)
cc_library
(
name
=
"opencl_source_linkage"
,
srcs
=
[
"runtime/opencl/opencl_source_linkage.cc"
],
copts
=
[
"-std=c++11"
,
"-D_GLIBCXX_USE_C99_MATH_TR1"
,
"-Werror=return-type"
],
linkstatic
=
1
,
deps
=
[
":core"
,
],
)
cc_library
(
name
=
"opencl_binary_linkage"
,
srcs
=
[
"runtime/opencl/opencl_binary_linkage.cc"
],
copts
=
[
"-std=c++11"
,
"-D_GLIBCXX_USE_C99_MATH_TR1"
,
"-Werror=return-type"
],
linkstatic
=
1
,
deps
=
[
":core"
,
],
)
mace/co
degen/distribute/use_binary
.cc
→
mace/co
re/runtime/opencl/opencl_binary_linkage
.cc
浏览文件 @
33310ee8
文件已移动
mace/co
degen/distribute/use_sourc
e.cc
→
mace/co
re/runtime/opencl/opencl_source_linkag
e.cc
浏览文件 @
33310ee8
文件已移动
tools/validate_gcn.sh
浏览文件 @
33310ee8
...
...
@@ -115,8 +115,6 @@ build_and_run false
echo
"Step 6: Generate OpenCL binary program and config code"
rm
-rf
${
CL_BIN_DIR
}
adb pull
${
KERNEL_DIR
}
${
CL_BIN_DIR
}
rm
-rf
${
CL_CODEGEN_DIR
}
mkdir
-p
${
CL_CODEGEN_DIR
}
python mace/python/tools/opencl_codegen.py
\
--cl_binary_dir
=
${
CL_BIN_DIR
}
--output_path
=
${
CL_CODEGEN_DIR
}
/opencl_compiled_program.cc
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录