Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
Mace
提交
c11cc056
Mace
项目概览
慢慢CG
/
Mace
与 Fork 源项目一致
Fork自
Xiaomi / Mace
通知
1
Star
0
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看板
提交
c11cc056
编写于
6月 14, 2019
作者:
叶
叶剑武
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'travis-bug' into 'master'
Update travis CI and remove build log for bazel. See merge request !1140
上级
03acb83b
b4458659
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
15 deletion
+14
-15
.travis.yml
.travis.yml
+9
-9
mace/codegen/tools/gen_version_source.sh
mace/codegen/tools/gen_version_source.sh
+1
-1
tools/bazel.rc
tools/bazel.rc
+0
-1
tools/bazel_adb_run.py
tools/bazel_adb_run.py
+4
-4
未找到文件。
.travis.yml
浏览文件 @
c11cc056
...
@@ -62,15 +62,15 @@ jobs:
...
@@ -62,15 +62,15 @@ jobs:
-
stage
:
Unit Test
-
stage
:
Unit Test
script
:
script
:
-
echo "Ops Test On Darwin"
-
echo "Ops Test On Darwin"
-
python tools/bazel_adb_run.py --target="//test/ccunit:mace_cc_test" --run_target=False --
enable_openmp=false --
target_abis=host || exit 1;
-
python tools/bazel_adb_run.py --target="//test/ccunit:mace_cc_test" --run_target=False --target_abis=host || exit 1;
-
bazel build "//test/ccunit:mace_cc_test" --config=ios --config=optimization_darwin --define
openmp=false --define
quantize=true --define neon=true --config symbol_hidden || exit 1;
-
bazel build "//test/ccunit:mace_cc_test" --config=ios --config=optimization_darwin --define quantize=true --define neon=true --config symbol_hidden || exit 1;
env
:
TYPE=Ops-Test
env
:
TYPE=Ops-Test
os
:
osx
os
:
osx
osx_image
:
xcode7.2
osx_image
:
xcode7.2
-
stage
:
Unit Test
-
stage
:
Unit Test
script
:
script
:
-
echo "Ops Test Without NEON"
-
echo "Ops Test Without NEON"
-
python tools/bazel_adb_run.py --target="//test/ccunit:mace_cc_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a,arm64 --enable_neon=false || exit
1
-
python tools/bazel_adb_run.py --target="//test/ccunit:mace_cc_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a,arm64 --enable_neon=false
--enable_quantize=false
|| exit
1
env
:
TYPE=Ops-Test-Without-NEON
env
:
TYPE=Ops-Test-Without-NEON
os
:
linux
os
:
linux
dist
:
xenial
dist
:
xenial
...
@@ -90,8 +90,8 @@ jobs:
...
@@ -90,8 +90,8 @@ jobs:
osx_image
:
xcode7.2
osx_image
:
xcode7.2
-
stage
:
Unit Test
-
stage
:
Unit Test
script
:
script
:
-
python tools/bazel_adb_run.py --target="//test/ccbenchmark:mace_cc_benchmark" --run_target=False --
enable_openmp=false --
target_abis=host || exit 1;
-
python tools/bazel_adb_run.py --target="//test/ccbenchmark:mace_cc_benchmark" --run_target=False --target_abis=host || exit 1;
-
bazel build "//test/ccbenchmark:mace_cc_benchmark" --config=ios --config=optimization_darwin --define
openmp=false --define
quantize=true --define neon=true --config symbol_hidden || exit 1;
-
bazel build "//test/ccbenchmark:mace_cc_benchmark" --config=ios --config=optimization_darwin --define quantize=true --define neon=true --config symbol_hidden || exit 1;
env
:
TYPE=Ops-Benchmark
env
:
TYPE=Ops-Benchmark
os
:
osx
os
:
osx
osx_image
:
xcode7.2
osx_image
:
xcode7.2
...
@@ -115,15 +115,15 @@ jobs:
...
@@ -115,15 +115,15 @@ jobs:
sudo
:
required
sudo
:
required
-
stage
:
Extra Test
-
stage
:
Extra Test
script
:
script
:
-
bazel build "//mace/libmace:libmace_static" --config=darwin --config=optimization_darwin --define
openmp=false --define
quantize=true --config symbol_hidden || exit 1;
-
bazel build "//mace/libmace:libmace_static" --config=darwin --config=optimization_darwin --define quantize=true --config symbol_hidden || exit 1;
-
bazel build "//mace/libmace:libmace_dynamic" --config=darwin --config=optimization_darwin --define
openmp=false --define
quantize=true --config symbol_hidden || exit 1;
-
bazel build "//mace/libmace:libmace_dynamic" --config=darwin --config=optimization_darwin --define quantize=true --config symbol_hidden || exit 1;
env
:
TYPE=Build-Library
env
:
TYPE=Build-Library
os
:
osx
os
:
osx
osx_image
:
xcode7.2
osx_image
:
xcode7.2
-
stage
:
Extra Test
-
stage
:
Extra Test
script
:
script
:
-
bazel build "//mace/libmace:libmace_static" --config=ios --config=optimization_darwin --define
openmp=false --define
quantize=true --define neon=true --config symbol_hidden || exit 1;
-
bazel build "//mace/libmace:libmace_static" --config=ios --config=optimization_darwin --define quantize=true --define neon=true --config symbol_hidden || exit 1;
-
bazel build "//mace/libmace:libmace_dynamic" --config=ios --config=optimization_darwin --define
openmp=false --define
quantize=true --define neon=true --config symbol_hidden || exit 1;
-
bazel build "//mace/libmace:libmace_dynamic" --config=ios --config=optimization_darwin --define quantize=true --define neon=true --config symbol_hidden || exit 1;
env
:
TYPE=Build-Library
env
:
TYPE=Build-Library
os
:
osx
os
:
osx
osx_image
:
xcode7.2
osx_image
:
xcode7.2
mace/codegen/tools/gen_version_source.sh
浏览文件 @
c11cc056
...
@@ -22,7 +22,7 @@ fi
...
@@ -22,7 +22,7 @@ fi
mkdir
-p
$(
dirname
$OUTPUT_FILENAME
)
mkdir
-p
$(
dirname
$OUTPUT_FILENAME
)
MACE_SOURCE_DIR
=
$(
dirname
$(
dirname
$(
dirname
$(
dirname
$0
))))
MACE_SOURCE_DIR
=
$(
dirname
$(
dirname
$(
dirname
$(
dirname
$0
))))
GIT_VERSION
=
$(
git
--git-dir
=
${
MACE_SOURCE_DIR
}
/.git
--work-tree
=
${
MACE_SOURCE_DIR
}
describe
--long
--tags
)
GIT_VERSION
=
$(
git
--git-dir
=
${
MACE_SOURCE_DIR
}
/.git
--work-tree
=
${
MACE_SOURCE_DIR
}
describe
--long
--tags
--abbrev
=
7
)
if
[[
$?
!=
0
]]
;
then
if
[[
$?
!=
0
]]
;
then
GIT_VERSION
=
$(
git describe
--long
--tags
)
GIT_VERSION
=
$(
git describe
--long
--tags
)
...
...
tools/bazel.rc
浏览文件 @
c11cc056
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
# By default, we don't distinct target and host platfroms.
# By default, we don't distinct target and host platfroms.
build --distinct_host_configuration=false
build --distinct_host_configuration=false
build -s
build --verbose_failures
build --verbose_failures
build --copt=-std=c++11
build --copt=-std=c++11
build --copt=-fPIC
build --copt=-fPIC
...
...
tools/bazel_adb_run.py
浏览文件 @
c11cc056
...
@@ -89,10 +89,10 @@ def parse_args():
...
@@ -89,10 +89,10 @@ def parse_args():
default
=
True
,
default
=
True
,
help
=
"Whether to use neon optimization"
)
help
=
"Whether to use neon optimization"
)
parser
.
add_argument
(
parser
.
add_argument
(
"--enable_
openmp
"
,
"--enable_
quantize
"
,
type
=
str2bool
,
type
=
str2bool
,
default
=
Fals
e
,
default
=
Tru
e
,
help
=
"Whether to use
openmp
"
)
help
=
"Whether to use
quantization ops
"
)
parser
.
add_argument
(
parser
.
add_argument
(
'--address_sanitizer'
,
'--address_sanitizer'
,
action
=
"store_true"
,
action
=
"store_true"
,
...
@@ -127,7 +127,7 @@ def main(unused_args):
...
@@ -127,7 +127,7 @@ def main(unused_args):
abi
=
target_abi
,
abi
=
target_abi
,
toolchain
=
toolchain
,
toolchain
=
toolchain
,
enable_neon
=
FLAGS
.
enable_neon
,
enable_neon
=
FLAGS
.
enable_neon
,
enable_
openmp
=
FLAGS
.
enable_openmp
,
enable_
quantize
=
FLAGS
.
enable_quantize
,
address_sanitizer
=
FLAGS
.
address_sanitizer
,
address_sanitizer
=
FLAGS
.
address_sanitizer
,
debug_mode
=
FLAGS
.
debug_mode
)
debug_mode
=
FLAGS
.
debug_mode
)
if
FLAGS
.
run_target
:
if
FLAGS
.
run_target
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录