Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MegEngine 天元
MegEngine
提交
7f48625f
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看板
提交
7f48625f
编写于
12月 14, 2020
作者:
M
Megvii Engine Team
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore(third_party): add range-v3 as third_party dependency
GitOrigin-RevId: cdb5a9ef3b9c9a13de2dcb9861c927ca289887b6
上级
184e1311
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
77 addition
and
2 deletion
+77
-2
.gitmodules
.gitmodules
+3
-0
ACKNOWLEDGMENTS
ACKNOWLEDGMENTS
+68
-0
imperative/CMakeLists.txt
imperative/CMakeLists.txt
+3
-1
imperative/test/CMakeLists.txt
imperative/test/CMakeLists.txt
+1
-1
third_party/prepare.sh
third_party/prepare.sh
+1
-0
third_party/range-v3
third_party/range-v3
+1
-0
未找到文件。
.gitmodules
浏览文件 @
7f48625f
...
...
@@ -40,3 +40,6 @@
[submodule "third_party/cutlass"]
path = third_party/cutlass
url = https://github.com/MegEngine/cutlass.git
[submodule "third_party/range-v3"]
path = third_party/range-v3
url = https://github.com/ericniebler/range-v3.git
ACKNOWLEDGMENTS
浏览文件 @
7f48625f
...
...
@@ -2288,3 +2288,71 @@ and on any theory of liability, whether in contract, strict liability,
or tort (including negligence or otherwise) arising in any way out of
the use of this software, even if advised of the possibility of such damage.
*********************************************************************************************************************************
==============================================================================
libc++ License
==============================================================================
Copyright (c) 2009-2014 by the contributors listed in CREDITS.TXT
http://llvm.org/svn/llvm-project/libcxx/trunk/CREDITS.TXT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
==============================================================================
Stepanov and McJones, "Elements of Programming" license
==============================================================================
// Copyright (c) 2009 Alexander Stepanov and Paul McJones
//
// Permission to use, copy, modify, distribute and sell this software
// and its documentation for any purpose is hereby granted without
// fee, provided that the above copyright notice appear in all copies
// and that both that copyright notice and this permission notice
// appear in supporting documentation. The authors make no
// representations about the suitability of this software for any
// purpose. It is provided "as is" without express or implied
// warranty.
//
// Algorithms from
// Elements of Programming
// by Alexander Stepanov and Paul McJones
// Addison-Wesley Professional, 2009
==============================================================================
SGI C++ Standard Template Library license
==============================================================================
// Copyright (c) 1994
// Hewlett-Packard Company
//
// Permission to use, copy, modify, distribute and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that the above copyright notice appear in all copies and
// that both that copyright notice and this permission notice appear
// in supporting documentation. Hewlett-Packard Company makes no
// representations about the suitability of this software for any
// purpose. It is provided "as is" without express or implied warranty.
//
// Copyright (c) 1996
// Silicon Graphics Computer Systems, Inc.
//
// Permission to use, copy, modify, distribute and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that the above copyright notice appear in all copies and
// that both that copyright notice and this permission notice appear
// in supporting documentation. Silicon Graphics makes no
// representations about the suitability of this software for any
// purpose. It is provided "as is" without express or implied warranty.
imperative/CMakeLists.txt
浏览文件 @
7f48625f
...
...
@@ -46,6 +46,9 @@ else()
endif
()
endif
()
add_subdirectory
(
${
PROJECT_SOURCE_DIR
}
/third_party/range-v3
${
PROJECT_BINARY_DIR
}
/third_party/range-v3
)
target_link_libraries
(
${
MODULE_NAME
}
PRIVATE range-v3
)
target_include_directories
(
${
MODULE_NAME
}
PUBLIC src/include PRIVATE
${
PYTHON_INCLUDE_DIRS
}
${
NUMPY_INCLUDE_DIR
}
${
MGB_OPDEF_OUT_DIR
}
)
target_compile_definitions
(
${
MODULE_NAME
}
PRIVATE MODULE_NAME=
${
MODULE_NAME
}
)
target_compile_options
(
${
MODULE_NAME
}
PRIVATE -Wno-unused-parameter
)
...
...
@@ -77,4 +80,3 @@ add_custom_command(
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CMAKE_CURRENT_SOURCE_DIR
}
/python/requires-style.txt
${
CMAKE_CURRENT_BINARY_DIR
}
/python/requires-style.txt
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CMAKE_CURRENT_SOURCE_DIR
}
/python/requires-test.txt
${
CMAKE_CURRENT_BINARY_DIR
}
/python/requires-test.txt
)
imperative/test/CMakeLists.txt
浏览文件 @
7f48625f
...
...
@@ -18,7 +18,7 @@ target_include_directories(imperative_test PRIVATE ${MODULE_SRC_INCLUDE} ${PYTHO
target_compile_definitions
(
imperative_test PRIVATE MODULE_NAME=C
)
target_compile_options
(
imperative_test PRIVATE -Wno-unused-parameter
)
set
(
LINK_LIBS megbrain megdnn gtest gmock pybind11::embed
)
set
(
LINK_LIBS megbrain megdnn gtest gmock pybind11::embed
range-v3
)
if
(
MGE_WITH_CUDA
)
list
(
APPEND LINK_LIBS cudart
)
endif
()
...
...
third_party/prepare.sh
浏览文件 @
7f48625f
...
...
@@ -48,3 +48,4 @@ popd >/dev/null
git submodule update
--init
pybind11
git submodule update
--init
llvm-project
git submodule update
--init
range-v3
range-v3
@
d098b961
Subproject commit d098b9610ac2f182f667ae9274ac2fac7f1327f5
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录