Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MegEngine 天元
MegEngine
提交
f06c890e
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看板
提交
f06c890e
编写于
10月 28, 2021
作者:
M
Megvii Engine Team
提交者:
XindaH
12月 16, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(dnn/cambricon): make checksum bang-c kernel work for MLU370
GitOrigin-RevId: b29d6a1912a1ababdb757cf72d77ec72fb11e5e0
上级
396412e7
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
14 addition
and
13 deletion
+14
-13
CMakeLists.txt
CMakeLists.txt
+6
-5
cmake/cndev.cmake
cmake/cndev.cmake
+1
-1
cmake/cnlight.cmake
cmake/cnlight.cmake
+1
-1
cmake/cnml.cmake
cmake/cnml.cmake
+1
-1
cmake/cnnl.cmake
cmake/cnnl.cmake
+2
-2
cmake/cnrt.cmake
cmake/cnrt.cmake
+1
-1
cmake/magicmind.cmake
cmake/magicmind.cmake
+2
-2
未找到文件。
CMakeLists.txt
浏览文件 @
f06c890e
...
...
@@ -798,14 +798,15 @@ endif()
if
(
MGE_WITH_CAMBRICON
)
include_directories
(
"$ENV{NEUWARE_HOME}/include"
)
link_directories
(
"$ENV{NEUWARE_HOME}/lib64"
)
if
(
BANG_ARCH LESS 300
)
include
(
cmake/cnml.cmake
)
list
(
APPEND MGE_CAMBRICON_LIBS libcnml
)
else
()
list
(
APPEND MGE_CAMBRICON_LIBS libcnrt libcndev
)
if
(
CNRT_VERSION_STRING VERSION_GREATER
"5.0.0"
)
include
(
cmake/cnnl.cmake
)
include
(
cmake/cnlight.cmake
)
include
(
cmake/magicmind.cmake
)
list
(
APPEND MGE_CAMBRICON_LIBS libcnnl libcnnl_extra libcnlight libmagicmind libmagicmid_runtime
)
list
(
APPEND MGE_CAMBRICON_LIBS libcnnl libcnnl_extra libcnlight libmagicmind libmagicmind_runtime
)
else
()
include
(
cmake/cnml.cmake
)
list
(
APPEND MGE_CAMBRICON_LIBS libcnml
)
endif
()
set
(
MGE_CAMBRICON_LIBS
"
${
MGE_CAMBRICON_LIBS
}
"
)
endif
()
...
...
cmake/cndev.cmake
浏览文件 @
f06c890e
...
...
@@ -9,7 +9,7 @@ if(CNDEV_LIBRARY STREQUAL "CNDEV_LIBRARY-NOTFOUND")
message
(
FATAL_ERROR
"Can not find CNDEV Library"
)
endif
()
get_filename_component
(
__found_cndev_root
"
${
CNDEV_LIBRARY
}
/../include"
REALPATH
)
get_filename_component
(
__found_cndev_root
${
CNDEV_LIBRARY
}
/../..
REALPATH
)
find_path
(
CNDEV_INCLUDE_DIR
NAMES cndev.h
HINTS
"$ENV{NEUWARE_HOME}/include"
${
__found_cndev_root
}
...
...
cmake/cnlight.cmake
浏览文件 @
f06c890e
...
...
@@ -9,7 +9,7 @@ if(CNLIGHT_LIBRARY STREQUAL "CNLIGHT_LIBRARY-NOTFOUND")
message
(
FATAL_ERROR
"Can not find CNLIGHT Library"
)
endif
()
get_filename_component
(
__found_cnlight_root
"
${
CNLIGHT_LIBRARY
}
/../
include
"
REALPATH
)
get_filename_component
(
__found_cnlight_root
"
${
CNLIGHT_LIBRARY
}
/../
..
"
REALPATH
)
find_path
(
CNLIGHT_INCLUDE_DIR
NAMES cnlight.h
HINTS
"$ENV{NEUWARE_HOME}/include"
${
__found_cnlight_root
}
...
...
cmake/cnml.cmake
浏览文件 @
f06c890e
...
...
@@ -9,7 +9,7 @@ if(CNML_LIBRARY STREQUAL "CNML_LIBRARY-NOTFOUND")
message
(
FATAL_ERROR
"Can not find CNML Library"
)
endif
()
get_filename_component
(
__found_cnml_root
"
${
CNML_LIBRARY
}
/../
include
"
REALPATH
)
get_filename_component
(
__found_cnml_root
"
${
CNML_LIBRARY
}
/../
..
"
REALPATH
)
find_path
(
CNML_INCLUDE_DIR
NAMES cnml.h
HINTS
"$ENV{NEUWARE_HOME}/include"
${
__found_cnml_root
}
...
...
cmake/cnnl.cmake
浏览文件 @
f06c890e
...
...
@@ -9,7 +9,7 @@ if(CNNL_LIBRARY STREQUAL "CNNL_LIBRARY-NOTFOUND")
message
(
FATAL_ERROR
"Can not find CNNL Library"
)
endif
()
get_filename_component
(
__found_cnnl_root
"
${
CNNL_LIBRARY
}
/../
include
"
REALPATH
)
get_filename_component
(
__found_cnnl_root
"
${
CNNL_LIBRARY
}
/../
..
"
REALPATH
)
find_path
(
CNNL_INCLUDE_DIR
NAMES cnnl.h
HINTS
"$ENV{NEUWARE_HOME}/include"
${
__found_cnnl_root
}
...
...
@@ -49,7 +49,7 @@ if(CNNL_EXTRA_LIBRARY STREQUAL "CNNL_EXTRA_LIBRARY-NOTFOUND")
message
(
FATAL_ERROR
"Can not find CNNL_EXTRA Library"
)
endif
()
get_filename_component
(
__found_cnnl_extra_root
"
${
CNNL_EXTRA_LIBRARY
}
/../
include
"
REALPATH
)
get_filename_component
(
__found_cnnl_extra_root
"
${
CNNL_EXTRA_LIBRARY
}
/../
..
"
REALPATH
)
find_path
(
CNNL_EXTRA_INCLUDE_DIR
NAMES cnnl_extra.h
HINTS
"$ENV{NEUWARE_HOME}/include"
${
__found_cnnl_extra_root
}
...
...
cmake/cnrt.cmake
浏览文件 @
f06c890e
...
...
@@ -9,7 +9,7 @@ if(CNRT_LIBRARY STREQUAL "CNRT_LIBRARY-NOTFOUND")
message
(
FATAL_ERROR
"Can not find CNRT Library"
)
endif
()
get_filename_component
(
__found_cnrt_root
"
${
CNRT_LIBRARY
}
/../include"
REALPATH
)
get_filename_component
(
__found_cnrt_root
${
CNRT_LIBRARY
}
/../../
REALPATH
)
find_path
(
CNRT_INCLUDE_DIR
NAMES cnrt.h
HINTS
"$ENV{NEUWARE_HOME}/include"
${
__found_cnrt_root
}
...
...
cmake/magicmind.cmake
浏览文件 @
f06c890e
...
...
@@ -9,7 +9,7 @@ if(MAGICMIND_LIBRARY STREQUAL "MAGICMIND_LIBRARY-NOTFOUND")
message
(
FATAL_ERROR
"Can not find MAGICMIND Library"
)
endif
()
get_filename_component
(
__found_magicmind_root
"
${
MAGICMIND_LIBRARY
}
/../
include
"
REALPATH
)
get_filename_component
(
__found_magicmind_root
"
${
MAGICMIND_LIBRARY
}
/../
../
"
REALPATH
)
find_path
(
MAGICMIND_INCLUDE_DIR
NAMES common.h
HINTS
"$ENV{NEUWARE_HOME}/include"
${
__found_magicmind_root
}
...
...
@@ -40,7 +40,7 @@ message(STATUS "Found MAGICMIND: ${__found_magicmind_root} (found version: ${MAG
find_library
(
MAGICMIND_RUNTIME_LIBRARY
NAMES libmagicmind_runtime.so
PATHS
"
${
__found_magicmind_root
}
/
../
lib64"
PATHS
"
${
__found_magicmind_root
}
/lib64"
)
if
(
MAGICMIND_RUNTIME_LIBRARY STREQUAL
"MAGICMIND_RUNTIME_LIBRARY-NOTFOUND"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录