Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MegEngine 天元
MegEngine
提交
31a1f538
MegEngine
项目概览
MegEngine 天元
/
MegEngine
大约 1 年 前同步成功
通知
399
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看板
提交
31a1f538
编写于
6月 04, 2021
作者:
M
Megvii Engine Team
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(whl/opencl): enable OpenCL in python whl
GitOrigin-RevId: a1c34ef40b80b409d387698b52711533cf058f5d
上级
b07f3728
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
11 addition
and
8 deletion
+11
-8
scripts/whl/macos/macos_build_whl.sh
scripts/whl/macos/macos_build_whl.sh
+2
-1
scripts/whl/manylinux2014/build_wheel_common.sh
scripts/whl/manylinux2014/build_wheel_common.sh
+4
-3
scripts/whl/manylinux2014/do_build_common.sh
scripts/whl/manylinux2014/do_build_common.sh
+3
-3
scripts/whl/windows/windows_build_whl.sh
scripts/whl/windows/windows_build_whl.sh
+2
-1
未找到文件。
scripts/whl/macos/macos_build_whl.sh
浏览文件 @
31a1f538
...
...
@@ -101,6 +101,7 @@ BUILD_DIR=${SRC_DIR}/build_dir/host/MGE_WITH_CUDA_OFF/MGE_INFERENCE_ONLY_OFF/Rel
INCREMENT_KEY_WORDS
=
"conv_bias.cpp.o is dirty"
IS_IN_FIRST_LOOP
=
TRUE
ORG_EXTRA_CMAKE_FLAG
=
${
EXTRA_CMAKE_FLAG
}
function
do_build
()
{
for
ver
in
${
ALL_PYTHON
}
do
...
...
@@ -127,7 +128,7 @@ function do_build() {
echo
"PYTHON_LIBRARY:
${
PYTHON_LIBRARY
}
"
echo
"PYTHON_INCLUDE_DIR:
${
PYTHON_INCLUDE_DIR
}
"
#config build type to RelWithDebInfo to enable MGB_ENABLE_DEBUG_UTIL etc
export
EXTRA_CMAKE_ARGS
=
"
${
EXTRA_CMAKE_ARGS
}
-DCMAKE_BUILD_TYPE=RelWithDebInfo"
export
EXTRA_CMAKE_ARGS
=
"
${
ORG_EXTRA_CMAKE_FLAG
}
-DCMAKE_BUILD_TYPE=RelWithDebInfo"
#append cmake args for config python
export
EXTRA_CMAKE_ARGS
=
"
${
EXTRA_CMAKE_ARGS
}
-DPYTHON_EXECUTABLE=
${
PYTHON_DIR
}
/bin/python3"
export
EXTRA_CMAKE_ARGS
=
"
${
EXTRA_CMAKE_ARGS
}
-DPYTHON_LIBRARY=
${
PYTHON_LIBRARY
}
"
...
...
scripts/whl/manylinux2014/build_wheel_common.sh
浏览文件 @
31a1f538
#!/bin/bash
set
-ex
#!/bin/bash -e
set
-x
CWD
=
$(
dirname
$0
)
BASEDIR
=
$(
readlink
-f
${
CWD
}
/../../..
)
OUTPUTDIR
=
$(
readlink
-f
${
CWD
}
/output
)
...
...
@@ -265,7 +266,7 @@ if [ "$BUILD_GCC8" == "ON" ];then
else
run_cmd
=
"/home/code/scripts/whl/manylinux2014/do_build_common.sh"
fi
set
+x
docker run
--rm
-it
$TMPFS_ARGS
\
-e
UID
=
${
USERID
}
\
-e
PUBLIC_VERSION_POSTFIX
=
${
PUBLIC_VERSION_POSTFIX
}
\
...
...
scripts/whl/manylinux2014/do_build_common.sh
浏览文件 @
31a1f538
#!/bin/bash -e
x
#!/bin/bash -e
function
handle_strip
()
{
echo
"now handle strip
$1
"
...
...
@@ -89,6 +89,7 @@ fi
INCREMENT_KEY_WORDS
=
".cu.o is dirty"
IS_IN_FIRST_LOOP
=
TRUE
ORG_EXTRA_CMAKE_FLAG
=
${
EXTRA_CMAKE_FLAG
}
for
ver
in
${
ALL_PYTHON
}
do
# we want run a full clean build at the first loop
...
...
@@ -103,8 +104,7 @@ do
MAJOR
=
${
python_ver
:0:1
}
MINOR
=
${
ver
:1
}
PYTHON_DIR
=
/opt/python/cp
${
python_ver
}
-cp
${
ver
}
/
export
EXTRA_CMAKE_ARGS
=
"
${
EXTRA_CMAKE_ARGS
}
${
EXTRA_CMAKE_FLAG
}
"
export
EXTRA_CMAKE_ARGS
=
"
${
EXTRA_CMAKE_ARGS
}
-DCMAKE_BUILD_TYPE=RelWithDebInfo"
export
EXTRA_CMAKE_ARGS
=
"
${
ORG_EXTRA_CMAKE_FLAG
}
-DCMAKE_BUILD_TYPE=RelWithDebInfo"
export
EXTRA_CMAKE_ARGS
=
"
${
EXTRA_CMAKE_ARGS
}
-DPYTHON_EXECUTABLE=
${
PYTHON_DIR
}
/bin/python3"
export
EXTRA_CMAKE_ARGS
=
"
${
EXTRA_CMAKE_ARGS
}
-DPYTHON_LIBRARY=
${
PYTHON_DIR
}
lib/"
export
EXTRA_CMAKE_ARGS
=
"
${
EXTRA_CMAKE_ARGS
}
-DPYTHON_INCLUDE_DIR=
${
PYTHON_DIR
}
include/python
${
MAJOR
}
.
${
MINOR
}
"
...
...
scripts/whl/windows/windows_build_whl.sh
浏览文件 @
31a1f538
...
...
@@ -114,6 +114,7 @@ BUILD_DIR=${SRC_DIR}/build_dir/host/build/
INCREMENT_KEY_WORDS
=
".cu.obj is dirty"
IS_IN_FIRST_LOOP
=
TRUE
ORG_EXTRA_CMAKE_FLAG
=
${
EXTRA_CMAKE_FLAG
}
function
do_build
()
{
for
ver
in
${
ALL_PYTHON
}
do
...
...
@@ -140,7 +141,7 @@ function do_build() {
echo
"PYTHON_LIBRARY:
${
PYTHON_LIBRARY
}
"
echo
"PYTHON_INCLUDE_DIR:
${
PYTHON_INCLUDE_DIR
}
"
#config build type to RelWithDebInfo to enable MGB_ENABLE_DEBUG_UTIL etc
export
EXTRA_CMAKE_ARGS
=
"
${
EXTRA_CMAKE_ARGS
}
-DCMAKE_BUILD_TYPE=RelWithDebInfo "
export
EXTRA_CMAKE_ARGS
=
"
${
ORG_EXTRA_CMAKE_FLAG
}
-DCMAKE_BUILD_TYPE=RelWithDebInfo "
#call build and install
HOST_BUILD_ARGS
=
" -t -s"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录