Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MegEngine 天元
MegEngine
提交
71cc814e
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看板
提交
71cc814e
编写于
6月 04, 2021
作者:
M
Megvii Engine Team
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(ci): add aarch64 linux ci
GitOrigin-RevId: 2c0d3a8cc29745e4bceb3bd570a7e67bd1b8b651
上级
31a1f538
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
36 addition
and
9 deletion
+36
-9
dnn/test/CMakeLists.txt
dnn/test/CMakeLists.txt
+3
-0
imperative/python/test/run.sh
imperative/python/test/run.sh
+9
-0
scripts/whl/manylinux2014/build_wheel_common.sh
scripts/whl/manylinux2014/build_wheel_common.sh
+24
-8
scripts/whl/utils/utils.sh
scripts/whl/utils/utils.sh
+0
-1
未找到文件。
dnn/test/CMakeLists.txt
浏览文件 @
71cc814e
...
...
@@ -56,6 +56,9 @@ if (MGE_WITH_CUDA)
target_link_libraries
(
megdnn_test cutlass
)
target_include_directories
(
megdnn_test PRIVATE
${
CUDNN_INCLUDE_DIR
}
)
endif
()
if
(
MGE_WITH_ATLAS
)
target_link_libraries
(
megdnn_test atlas-stub
)
endif
()
target_include_directories
(
megdnn_test
...
...
imperative/python/test/run.sh
浏览文件 @
71cc814e
...
...
@@ -24,6 +24,15 @@ if [[ "$TEST_PLAT" =~ "local" ]]; then
cd
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
megengine_dir
=
`
python3
-c
'from pathlib import Path;import megengine;print(Path(megengine.__file__).resolve().parent)'
`
test_dirs
=
"
${
megengine_dir
}
."
# FIXME: at aarch64 env, run megengine_dir pytest have exit issue!!
machine
=
$(
uname
-m
)
case
${
machine
}
in
x86_64
)
test_dirs
=
"
${
megengine_dir
}
."
;;
aarch64
)
test_dirs
=
"."
;;
*
)
echo
"nonsupport env!!!"
;
exit
-1
;;
esac
echo
"test local env at:
${
test_dirs
}
"
PY_IGNORE_IMPORTMISMATCH
=
1 python3
-m
pytest
-v
$test_dirs
-m
'not isolated_distributed'
if
[[
"
$TEST_PLAT
"
=
~
"cuda"
]]
;
then
...
...
scripts/whl/manylinux2014/build_wheel_common.sh
浏览文件 @
71cc814e
...
...
@@ -13,6 +13,10 @@ CUDA_LIB_DIR="/usr/local/cuda/lib64/"
SDK_NAME
=
"unknown"
x86_64_support_version
=
"cu101 cu111 cu112 cpu"
aarch64_support_version
=
"cu111 cpu"
if
[[
-z
${
IN_CI
}
]]
then
IN_CI
=
"false"
fi
function
usage
()
{
echo
"use -sdk sdk_version to specify sdk toolkit config!"
echo
"now x86_64 sdk_version support
${
x86_64_support_version
}
"
...
...
@@ -91,13 +95,18 @@ elif [ $SDK_NAME == "cu111" ];then
${
CUDNN_LIB_DIR
}
/libcudnn_ops_train.so.8:
\
${
CUDNN_LIB_DIR
}
/libcudnn.so.8"
EXTRA_CMAKE_FLAG
=
" -DMGE_WITH_CUDNN_SHARED=ON -DMGE_WITH_CUBLAS_SHARED=ON
\
-DMGE_CUDA_GENCODE=
\"
-gencode arch=compute_61,code=sm_61
\
-gencode arch=compute_70,code=sm_70
\
-gencode arch=compute_75,code=sm_75
\
-gencode arch=compute_80,code=sm_80
\
-gencode arch=compute_86,code=sm_86
\
-gencode arch=compute_86,code=compute_86
\"
"
if
[
${
IN_CI
}
=
"true"
]
&&
[
${
machine
}
==
"aarch64"
]
;
then
EXTRA_CMAKE_FLAG
=
" -DMGE_WITH_CUDNN_SHARED=ON -DMGE_WITH_CUBLAS_SHARED=ON
\
-DMGE_WITH_TEST=ON -DMGE_CUDA_GENCODE=
\"
-gencode arch=compute_75,code=sm_75
\"
"
else
EXTRA_CMAKE_FLAG
=
" -DMGE_WITH_CUDNN_SHARED=ON -DMGE_WITH_CUBLAS_SHARED=ON
\
-DMGE_CUDA_GENCODE=
\"
-gencode arch=compute_61,code=sm_61
\
-gencode arch=compute_70,code=sm_70
\
-gencode arch=compute_75,code=sm_75
\
-gencode arch=compute_80,code=sm_80
\
-gencode arch=compute_86,code=sm_86
\
-gencode arch=compute_86,code=compute_86
\"
"
fi
elif
[
$SDK_NAME
==
"cu112"
]
;
then
CUDA_COPY_LIB_LIST
=
"
\
...
...
@@ -267,7 +276,14 @@ else
run_cmd
=
"/home/code/scripts/whl/manylinux2014/do_build_common.sh"
fi
set
+x
docker run
--rm
-it
$TMPFS_ARGS
\
docker_args
=
"-it"
if
[
-z
"
${
CI_SERVER_NAME
}
"
]
;
then
Target
=
"null"
fi
if
[
${
CI_SERVER_NAME
}
=
"GitLab"
]
;
then
docker_args
=
"-i"
fi
docker run
--rm
${
docker_args
}
$TMPFS_ARGS
\
-e
UID
=
${
USERID
}
\
-e
PUBLIC_VERSION_POSTFIX
=
${
PUBLIC_VERSION_POSTFIX
}
\
-e
LOCAL_VERSION
=
${
LOCAL_VERSION
}
\
...
...
scripts/whl/utils/utils.sh
浏览文件 @
71cc814e
...
...
@@ -98,7 +98,6 @@ function check_python_version_is_valid() {
echo
"err call check_python_version_is_valid"
exit
-1
fi
is_valid
=
"false"
for
i_want_build_version
in
${
want_build_version
}
do
is_valid
=
"false"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录