Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
孤小逸
Mace
提交
c59be5ae
Mace
项目概览
孤小逸
/
Mace
与 Fork 源项目一致
Fork自
Xiaomi / Mace
通知
1
Star
1
Fork
0
代码
文件
提交
分支
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c59be5ae
编写于
5月 17, 2018
作者:
Y
yejianwu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update copts in bazel
上级
42160b31
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
31 addition
and
30 deletion
+31
-30
mace/benchmark/BUILD
mace/benchmark/BUILD
+8
-5
mace/codegen/BUILD
mace/codegen/BUILD
+5
-5
mace/core/BUILD
mace/core/BUILD
+4
-2
mace/examples/BUILD
mace/examples/BUILD
+1
-1
mace/kernels/BUILD
mace/kernels/BUILD
+2
-2
mace/ops/BUILD
mace/ops/BUILD
+4
-4
mace/public/BUILD
mace/public/BUILD
+1
-1
mace/test/BUILD
mace/test/BUILD
+2
-2
mace/utils/BUILD
mace/utils/BUILD
+4
-4
tools/sh_commands.py
tools/sh_commands.py
+0
-4
未找到文件。
mace/benchmark/BUILD
浏览文件 @
c59be5ae
...
...
@@ -16,7 +16,7 @@ cc_library(
srcs
=
[
"statistics.cc"
],
hdrs
=
[
"statistics.h"
],
linkstatic
=
1
,
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
deps
=
[
"//mace/kernels"
,
"//mace/utils"
,
...
...
@@ -28,8 +28,12 @@ cc_binary(
srcs
=
[
"benchmark_model.cc"
,
],
copts
=
if_android
([
"-DMACE_ENABLE_OPENCL"
]),
linkopts
=
[
"-Werror"
]
+
if_openmp_enabled
([
"-fopenmp"
]),
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
,
]
+
if_android
([
"-DMACE_ENABLE_OPENCL"
]),
linkopts
=
if_openmp_enabled
([
"-fopenmp"
]),
linkstatic
=
1
,
deps
=
[
":statistics"
,
...
...
@@ -41,7 +45,6 @@ cc_binary(
cc_library
(
name
=
"libmace_merged"
,
copts
=
[
"-Werror"
],
srcs
=
[
"libmace_merged.a"
,
],
...
...
@@ -53,7 +56,7 @@ cc_binary(
srcs
=
[
"model_throughput_test.cc"
],
linkopts
=
if_openmp_enabled
([
"-fopenmp"
]),
linkstatic
=
1
,
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
deps
=
[
":libmace_merged"
,
"//external:gflags_nothreads"
,
...
...
mace/codegen/BUILD
浏览文件 @
c59be5ae
...
...
@@ -10,7 +10,7 @@ cc_library(
srcs
=
glob
([
"models/*/*.cc"
]),
hdrs
=
glob
([
"models/*/*.h"
]),
linkstatic
=
1
,
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
deps
=
[
"//mace/core"
,
"//mace/ops"
,
...
...
@@ -20,28 +20,28 @@ cc_library(
cc_library
(
name
=
"generated_opencl"
,
srcs
=
glob
([
"opencl/*.cc"
]),
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
linkstatic
=
1
,
)
cc_library
(
name
=
"generated_tuning_params"
,
srcs
=
[
"tuning/tuning_params.cc"
],
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
linkstatic
=
1
,
)
cc_library
(
name
=
"generated_version"
,
srcs
=
[
"version/version.cc"
],
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
linkstatic
=
1
,
)
cc_library
(
name
=
"generated_mace_engine_factory"
,
hdrs
=
[
"engine/mace_engine_factory.h"
],
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
deps
=
[
"//mace/public"
,
],
...
...
mace/core/BUILD
浏览文件 @
c59be5ae
...
...
@@ -44,6 +44,8 @@ cc_library(
))
+
if_hexagon_enabled
(
glob
([
"runtime/hexagon/*.h"
])),
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
,
]
+
if_openmp_enabled
([
"-fopenmp"
,
"-DMACE_ENABLE_OPENMP"
,
...
...
@@ -77,7 +79,7 @@ cc_library(
hdrs
=
glob
([
"runtime/opencl/*.h"
,
]),
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
deps
=
[
"@opencl_clhpp//:opencl_clhpp"
,
"@opencl_headers//:opencl20_headers"
,
...
...
@@ -94,7 +96,7 @@ cc_library(
hdrs
=
[
"testing/test_benchmark.h"
,
],
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
deps
=
[
":core"
,
"//external:gflags_nothreads"
,
...
...
mace/examples/BUILD
浏览文件 @
c59be5ae
...
...
@@ -6,7 +6,7 @@ cc_binary(
srcs
=
[
"example.cc"
],
linkopts
=
if_openmp_enabled
([
"-fopenmp"
]),
linkstatic
=
1
,
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
deps
=
[
"//external:gflags_nothreads"
,
"//mace/codegen:generated_models"
,
...
...
mace/kernels/BUILD
浏览文件 @
c59be5ae
...
...
@@ -38,7 +38,7 @@ cc_library(
"opencl/*.h"
,
"buffer_to_image.h"
,
])),
copts
=
[
"-Werror"
]
+
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
]
+
if_openmp_enabled
([
"-fopenmp"
])
+
if_neon_enabled
([
"-DMACE_ENABLE_NEON"
])
+
if_android_armv7
([
"-mfpu=neon"
])
+
...
...
@@ -62,7 +62,7 @@ cc_test(
"opencl/*_test.cc"
,
],
),
copts
=
[
"-Werror"
]
+
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
]
+
if_openmp_enabled
([
"-fopenmp"
])
+
if_neon_enabled
([
"-DMACE_ENABLE_NEON"
])
+
if_android_armv7
([
"-mfpu=neon"
])
+
...
...
mace/ops/BUILD
浏览文件 @
c59be5ae
...
...
@@ -15,7 +15,7 @@ cc_library(
hdrs
=
[
"ops_test_util.h"
,
],
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
deps
=
[
"//mace/core"
,
"@gtest//:gtest"
,
...
...
@@ -41,7 +41,7 @@ cc_library(
[
"*.h"
],
exclude
=
[
"ops_test_util.h"
],
),
copts
=
[
"-Werror"
]
+
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
]
+
if_openmp_enabled
([
"-fopenmp"
])
+
if_neon_enabled
([
"-DMACE_ENABLE_NEON"
])
+
if_android_armv7
([
"-mfpu=neon"
])
+
...
...
@@ -60,7 +60,7 @@ cc_test(
srcs
=
glob
(
[
"*_test.cc"
],
),
copts
=
[
"-Werror"
]
+
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
]
+
if_openmp_enabled
([
"-fopenmp"
])
+
if_neon_enabled
([
"-DMACE_ENABLE_NEON"
])
+
if_android_armv7
([
"-mfpu=neon"
])
+
...
...
@@ -80,7 +80,7 @@ cc_test(
name
=
"ops_benchmark"
,
testonly
=
1
,
srcs
=
glob
([
"*_benchmark.cc"
]),
copts
=
[
"-Werror"
]
+
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
]
+
if_openmp_enabled
([
"-fopenmp"
])
+
if_neon_enabled
([
"-DMACE_ENABLE_NEON"
])
+
if_android_armv7
([
"-mfpu=neon"
])
+
...
...
mace/public/BUILD
浏览文件 @
c59be5ae
...
...
@@ -13,7 +13,7 @@ cc_library(
"mace.h"
,
"mace_runtime.h"
,
],
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
deps
=
[
"//mace/proto:mace_cc"
,
],
...
...
mace/test/BUILD
浏览文件 @
c59be5ae
...
...
@@ -13,7 +13,7 @@ cc_test(
name
=
"mace_api_test"
,
testonly
=
1
,
srcs
=
[
"mace_api_test.cc"
],
copts
=
[
"-Werror"
]
+
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
]
+
if_openmp_enabled
([
"-fopenmp"
])
+
if_neon_enabled
([
"-DMACE_ENABLE_NEON"
])
+
if_android_armv7
([
"-mfpu=neon"
])
+
...
...
@@ -34,7 +34,7 @@ cc_test(
name
=
"mace_api_mt_test"
,
testonly
=
1
,
srcs
=
[
"mace_api_mt_test.cc"
],
copts
=
[
"-Werror"
]
+
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
]
+
if_openmp_enabled
([
"-fopenmp"
])
+
if_neon_enabled
([
"-DMACE_ENABLE_NEON"
])
+
if_android_armv7
([
"-mfpu=neon"
])
+
...
...
mace/utils/BUILD
浏览文件 @
c59be5ae
...
...
@@ -28,7 +28,7 @@ cc_library(
linkopts
=
if_android
([
"-llog"
,
]),
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
deps
=
[
"//mace/public"
,
"//mace/proto:mace_cc"
,
...
...
@@ -40,7 +40,7 @@ cc_library(
srcs
=
[
"tuner_development.cc"
,
],
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
deps
=
[
":utils"
,
],
...
...
@@ -51,7 +51,7 @@ cc_library(
srcs
=
[
"tuner_production.cc"
,
],
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
deps
=
[
":utils"
,
"//mace/codegen:generated_tuning_params"
,
...
...
@@ -64,7 +64,7 @@ cc_test(
srcs
=
[
"tuner_test.cc"
,
],
copts
=
[
"-Werror"
],
copts
=
[
"-Werror"
,
"-Wextra"
,
"-Wno-missing-field-initializers"
],
linkopts
=
if_android
([
"-pie"
,
"-lm"
,
# Required by unordered_map
...
...
tools/sh_commands.py
浏览文件 @
c59be5ae
...
...
@@ -287,8 +287,6 @@ def bazel_build(target,
target
,
"--copt=-std=c++11"
,
"--copt=-D_GLIBCXX_USE_C99_MATH_TR1"
,
"--copt=-Wextra"
,
"--copt=-Wno-missing-field-initializers"
,
"--copt=-O3"
,
"--define"
,
"openmp=%s"
%
str
(
enable_openmp
).
lower
(),
...
...
@@ -315,8 +313,6 @@ def bazel_build(target,
"--cpu=%s"
%
abi
,
"--copt=-std=c++11"
,
"--copt=-D_GLIBCXX_USE_C99_MATH_TR1"
,
"--copt=-Wextra"
,
"--copt=-Wno-missing-field-initializers"
,
"--copt=-DMACE_OBFUSCATE_LITERALS"
,
"--copt=-O3"
,
"--define"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录