Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MegEngine 天元
MegEngine
提交
61c5c9cf
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看板
提交
61c5c9cf
编写于
10月 20, 2020
作者:
M
Megvii Engine Team
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore(cmake): normlize some cmake message level
GitOrigin-RevId: 4550cbfaa6b4e6e4a22daa8217ab12a1482c1e88
上级
2e874208
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
45 addition
and
45 deletion
+45
-45
CMakeLists.txt
CMakeLists.txt
+26
-26
cmake/FetchMegBrainVersion.cmake
cmake/FetchMegBrainVersion.cmake
+1
-1
cmake/MKL_DNN.cmake
cmake/MKL_DNN.cmake
+1
-1
cmake/OpenBLAS.cmake
cmake/OpenBLAS.cmake
+1
-1
cmake/aclrt.cmake
cmake/aclrt.cmake
+1
-1
cmake/cndev.cmake
cmake/cndev.cmake
+1
-1
cmake/cnml.cmake
cmake/cnml.cmake
+1
-1
cmake/cnrt.cmake
cmake/cnrt.cmake
+1
-1
cmake/cpuinfo.cmake
cmake/cpuinfo.cmake
+1
-1
cmake/cudnn.cmake
cmake/cudnn.cmake
+1
-1
cmake/flatbuffers.cmake
cmake/flatbuffers.cmake
+2
-2
cmake/mkl.cmake
cmake/mkl.cmake
+1
-1
cmake/tensorrt.cmake
cmake/tensorrt.cmake
+1
-1
imperative/CMakeLists.txt
imperative/CMakeLists.txt
+3
-3
imperative/python/megengine/version.py
imperative/python/megengine/version.py
+1
-1
src/CMakeLists.txt
src/CMakeLists.txt
+2
-2
未找到文件。
CMakeLists.txt
浏览文件 @
61c5c9cf
...
...
@@ -59,7 +59,7 @@ option(MGE_WITH_ROCM "Enable ROCM support" OFF)
if
(
NOT
${
MGE_BIN_REDUCE
}
STREQUAL
""
)
message
(
"build with BIN REDUCE"
)
message
(
STATUS
"build with BIN REDUCE"
)
if
(
MGE_WITH_MINIMUM_SIZE
)
set
(
MGE_ENABLE_RTTI OFF
)
set
(
MGE_ENABLE_LOGGING OFF
)
...
...
@@ -73,14 +73,14 @@ if(NOT ${MGE_BIN_REDUCE} STREQUAL "")
endif
()
if
(
MGE_WITH_MIDOUT_PROFILE
)
message
(
"build with MIDOUT PROFILE"
)
message
(
STATUS
"build with MIDOUT PROFILE"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DMIDOUT_PROFILING"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-DMIDOUT_PROFILING"
)
endif
()
if
(
APPLE
)
set
(
BUILD_SHARED_LIBS OFF
)
message
(
"build static for xcode framework require"
)
message
(
STATUS
"build static for xcode framework require"
)
endif
()
if
(
MGE_USE_SYSTEM_LIB
)
...
...
@@ -92,8 +92,8 @@ if (MGB_WITH_FLATBUFFERS)
endif
()
if
(
CMAKE_TOOLCHAIN_FILE
)
message
(
"We are cross compiling."
)
message
(
"config FLATBUFFERS_FLATC_EXECUTABLE to:
${
PROJECT_SOURCE_DIR
}
/build_dir/host_flatc/install/bin/flatc"
)
message
(
STATUS
"We are cross compiling."
)
message
(
STATUS
"config FLATBUFFERS_FLATC_EXECUTABLE to:
${
PROJECT_SOURCE_DIR
}
/build_dir/host_flatc/install/bin/flatc"
)
set
(
FLATBUFFERS_FLATC_EXECUTABLE
"
${
PROJECT_SOURCE_DIR
}
/build_dir/host_flatc/install/bin/flatc"
)
if
(
ANDROID_TOOLCHAIN_ROOT
)
if
(
NOT
"
${
ANDROID_ARCH_NAME
}
"
STREQUAL
""
)
...
...
@@ -127,7 +127,7 @@ if(CMAKE_TOOLCHAIN_FILE)
else
()
message
(
FATAL_ERROR
"Unknown cross-compiling settings."
)
endif
()
message
(
"CONFIG MGE_ARCH TO
${
MGE_ARCH
}
"
)
message
(
STATUS
"CONFIG MGE_ARCH TO
${
MGE_ARCH
}
"
)
endif
()
if
(
${
MGE_ARCH
}
STREQUAL
"AUTO"
)
...
...
@@ -147,7 +147,7 @@ endif()
if
((
${
MGE_ARCH
}
STREQUAL
"x86_64"
OR
${
MGE_ARCH
}
STREQUAL
"i386"
OR
${
MGE_ARCH
}
STREQUAL
"armv7"
OR
${
MGE_ARCH
}
STREQUAL
"aarch64"
)
AND NOT APPLE
)
option
(
MGE_ENABLE_CPUINFO
"Build cpuinfo library for check runtime."
ON
)
if
(
MGE_ENABLE_CPUINFO
)
message
(
"--
Enable cpuinfo runtime check and little kernel optimize."
)
message
(
STATUS
"
Enable cpuinfo runtime check and little kernel optimize."
)
add_definitions
(
-DMGB_ENABLE_CPUINFO_CHECK
)
include
(
cmake/cpuinfo.cmake
)
endif
()
...
...
@@ -163,8 +163,8 @@ if(MSVC OR WIN32)
endif
()
add_compile_definitions
(
NOMINMAX=1 _USE_MATH_DEFINES=1 WIN32=1
)
message
(
"--
into windows build..."
)
message
(
"--
CMAKE_C_COMPILER_ID:
${
CMAKE_C_COMPILER_ID
}
"
)
message
(
STATUS
"
into windows build..."
)
message
(
VERBOSE
"
CMAKE_C_COMPILER_ID:
${
CMAKE_C_COMPILER_ID
}
"
)
if
(
${
CMAKE_C_COMPILER_ID
}
STREQUAL
"Clang-cl"
)
message
(
FATAL_ERROR
"only support clang-cl for windows build, pls check detail: scripts/cmake-build/BUILD_README.md"
)
endif
()
...
...
@@ -187,12 +187,12 @@ if(MSVC OR WIN32)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
WIN_FLAGS
}
"
)
#FIXME: fix halide JIT on windows
message
(
"--
disable jit, halide and mlir on windows host build..."
)
message
(
STATUS
"
disable jit, halide and mlir on windows host build..."
)
set
(
MGE_WITH_HALIDE OFF
)
set
(
MGE_WITH_JIT OFF
)
set
(
MGE_WITH_JIT_MLIR OFF
)
#FIXME: fix MegRay on windows
message
(
"--
Disable distributed build on windows host build..."
)
message
(
STATUS
"
Disable distributed build on windows host build..."
)
set
(
MGE_WITH_DISTRIBUTED OFF
)
else
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wall -Wextra"
)
...
...
@@ -209,7 +209,7 @@ endif()
CHECK_CXX_COMPILER_FLAG
(
-fuse-ld=gold CXX_SUPPORT_GOLD
)
if
(
CXX_SUPPORT_GOLD AND NOT ANDROID AND NOT APPLE AND NOT MSVC AND NOT WIN32
)
message
(
"--
Using GNU gold linker."
)
message
(
STATUS
"
Using GNU gold linker."
)
set
(
MGE_COMMON_LINKER_FLAGS
"-fuse-ld=gold"
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
${
MGE_COMMON_LINKER_FLAGS
}
"
)
set
(
CMAKE_MODULE_LINKER_FLAGS
"
${
CMAKE_MODULE_LINKER_FLAGS
}
${
MGE_COMMON_LINKER_FLAGS
}
"
)
...
...
@@ -249,12 +249,12 @@ endif()
if
(
NOT MGE_WITH_CUDA
)
if
(
NOT MGE_ARCH STREQUAL
"x86_64"
AND NOT MGE_ARCH STREQUAL
"i386"
)
message
(
"--
Disable JIT support, as the MGE_ARCH is not X86 and CUDA is not enabled."
)
message
(
STATUS
"
Disable JIT support, as the MGE_ARCH is not X86 and CUDA is not enabled."
)
set
(
MGE_WITH_JIT OFF
)
set
(
MGE_WITH_JIT_MLIR OFF
)
endif
()
set
(
MGE_WITH_HALIDE OFF
)
message
(
"--
Disable TensorRT support, as CUDA is not enabled."
)
message
(
STATUS
"
Disable TensorRT support, as CUDA is not enabled."
)
set
(
MGE_WITH_TRT OFF
)
endif
()
...
...
@@ -299,14 +299,14 @@ if(MGE_BUILD_IMPERATIVE_RT)
endif
()
if
(
NOT MGE_WITH_CUDA
)
message
(
"--
Disable distributed support, as CUDA is not enabled."
)
message
(
STATUS
"
Disable distributed support, as CUDA is not enabled."
)
set
(
MGE_WITH_DISTRIBUTED OFF
)
endif
()
if
(
MGE_INFERENCE_ONLY
)
message
(
"--
Disable distributed support for inference only build."
)
message
(
STATUS
"
Disable distributed support for inference only build."
)
set
(
MGE_WITH_DISTRIBUTED OFF
)
message
(
"--
Disable imperative_rt python module for inference only build."
)
message
(
STATUS
"
Disable imperative_rt python module for inference only build."
)
set
(
MGE_BUILD_IMPERATIVE_RT OFF
)
endif
()
...
...
@@ -394,8 +394,8 @@ if(MGE_WITH_CUDA)
if
(
MGE_WITH_TRT
)
if
(
MSVC OR WIN32
)
list
(
APPEND MGE_CUDA_LIBS
${
TRT_LIBRARY
}
${
CUDNN_LIBRARY
}
)
message
(
"--
windows TRT_LIBRARY:
${
TRT_LIBRARY
}
"
)
message
(
"--
windows CUDNN_LIBRARY:
${
CUDNN_LIBRARY
}
"
)
message
(
STATUS
"
windows TRT_LIBRARY:
${
TRT_LIBRARY
}
"
)
message
(
STATUS
"
windows CUDNN_LIBRARY:
${
CUDNN_LIBRARY
}
"
)
else
()
list
(
APPEND MGE_CUDA_LIBS -Wl,--whole-archive libnvinfer libcudnn -Wl,--no-whole-archive
)
endif
()
...
...
@@ -513,7 +513,7 @@ find_program(CCACHE_BIN ccache)
if
(
CCACHE_BIN
)
set
(
CMAKE_CXX_COMPILER_LAUNCHER
${
CCACHE_BIN
}
)
if
(
MGE_WITH_CUDA AND NOT
${
CMAKE_VERSION
}
VERSION_LESS
"3.10.0"
)
message
(
"--
Using ccache as CMAKE_CUDA_COMPILER_LAUNCHER"
)
message
(
STATUS
"
Using ccache as CMAKE_CUDA_COMPILER_LAUNCHER"
)
set
(
CMAKE_CUDA_COMPILER_LAUNCHER
${
CCACHE_BIN
}
)
endif
()
endif
()
...
...
@@ -571,7 +571,7 @@ IF(APPLE)
set
(
CMAKE_USE_WIN32_THREADS_INIT 0
)
set
(
CMAKE_USE_PTHREADS_INIT 1
)
set
(
THREADS_PREFER_PTHREAD_FLAG ON
)
message
(
"--
disable jit, halide and mlir on macos host build..."
)
message
(
STATUS
"
disable jit, halide and mlir on macos host build..."
)
set
(
MGE_WITH_HALIDE OFF
)
set
(
MGE_WITH_JIT OFF
)
set
(
MGE_WITH_JIT_MLIR OFF
)
...
...
@@ -648,7 +648,7 @@ endif()
# Enable Naive
if
(
MGE_ARCH STREQUAL
"naive"
)
set
(
MEGDNN_NAIVE 1
)
message
(
WARNING
"MEGDNN_NAIVE is enabled; MegDNN performance is degraded."
)
message
(
STATUS
"MEGDNN_NAIVE is enabled; MegDNN performance is degraded."
)
endif
()
if
(
MGE_ARCH STREQUAL
"x86_64"
OR MGE_ARCH STREQUAL
"i386"
)
...
...
@@ -685,7 +685,7 @@ if(MGE_ARCH STREQUAL "aarch64")
set
(
MEGDNN_64_BIT 1
)
set
(
MARCH
"-march=armv8-a"
)
if
(
MGE_ARMV8_2_FEATURE_FP16
)
message
(
"Enable fp16 feature support in armv8.2"
)
message
(
STATUS
"Enable fp16 feature support in armv8.2"
)
if
(
NOT
${
MGE_DISABLE_FLOAT16
}
)
set
(
MEGDNN_ENABLE_FP16_NEON 1
)
endif
()
...
...
@@ -693,7 +693,7 @@ if(MGE_ARCH STREQUAL "aarch64")
endif
()
if
(
MGE_ARMV8_2_FEATURE_DOTPROD
)
message
(
"Enable dotprod feature support in armv8.2"
)
message
(
STATUS
"Enable dotprod feature support in armv8.2"
)
if
(
MGE_ARMV8_2_FEATURE_FP16
)
set
(
MARCH
"-march=armv8.2-a+fp16+dotprod"
)
else
()
...
...
@@ -786,7 +786,7 @@ endif()
if
(
MGE_BUILD_IMPERATIVE_RT
)
add_subdirectory
(
imperative
)
message
(
"--
Enable imperative python wrapper runtime"
)
message
(
STATUS
"
Enable imperative python wrapper runtime"
)
endif
()
if
(
MGE_WITH_TEST AND MGE_ENABLE_RTTI
)
...
...
@@ -860,7 +860,7 @@ if(MSVC OR WIN32)
if
(
${
CompilerFlag
}
MATCHES
"/MD"
)
string
(
REPLACE
"/MD"
"/MT"
${
CompilerFlag
}
"
${${
CompilerFlag
}}
"
)
set
(
${
CompilerFlag
}
"
${${
CompilerFlag
}}
"
CACHE STRING
"msvc compiler flags"
FORCE
)
message
(
"MSVC flags:
${
CompilerFlag
}
:
${${
CompilerFlag
}}
"
)
message
(
VERBOSE
"MSVC flags:
${
CompilerFlag
}
:
${${
CompilerFlag
}}
"
)
endif
()
endforeach
()
endif
()
...
...
cmake/FetchMegBrainVersion.cmake
浏览文件 @
61c5c9cf
...
...
@@ -30,4 +30,4 @@ if (MGB_IS_DEV)
set
(
MGB_VER_STRING
"
${
MGB_VER_STRING
}
-dev"
)
endif
()
message
(
"--
Building MegBrain
${
MGB_VER_STRING
}
"
)
message
(
STATUS
"
Building MegBrain
${
MGB_VER_STRING
}
"
)
cmake/MKL_DNN.cmake
浏览文件 @
61c5c9cf
if
(
MGE_USE_SYSTEM_LIB
)
find_package
(
dnnl
)
if
(
dnnl_FOUND
)
message
(
"Using system provided MKL-DNN."
)
message
(
STATUS
"Using system provided MKL-DNN."
)
set
(
MGE_USE_SYSTEM_MKLDNN ON
)
return
()
endif
()
...
...
cmake/OpenBLAS.cmake
浏览文件 @
61c5c9cf
...
...
@@ -2,7 +2,7 @@ if (MGE_USE_SYSTEM_LIB)
find_package
(
OpenBLAS
)
set
(
MGE_USE_SYSTEM_OPENBLAS ON
)
message
(
"Using system provided OpenBLAS
${
OpenBLAS_VERSION
}
"
)
message
(
STATUS
"Using system provided OpenBLAS
${
OpenBLAS_VERSION
}
"
)
add_library
(
libopenblas IMPORTED GLOBAL
)
set_target_properties
(
libopenblas PROPERTIES
...
...
cmake/aclrt.cmake
浏览文件 @
61c5c9cf
...
...
@@ -31,5 +31,5 @@ set_target_properties(libascendcl PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES
${
ACLRT_INCLUDE_DIR
}
)
message
(
"--
Found ACLRT:
${
__found_aclrt_root
}
"
)
message
(
STATUS
"
Found ACLRT:
${
__found_aclrt_root
}
"
)
cmake/cndev.cmake
浏览文件 @
61c5c9cf
...
...
@@ -44,5 +44,5 @@ set_target_properties(libcndev PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES
${
CNDEV_INCLUDE_DIR
}
)
message
(
"--
Found CNDEV:
${
__found_cndev_root
}
(found version:
${
CNDEV_VERSION_STRING
}
)"
)
message
(
STATUS
"
Found CNDEV:
${
__found_cndev_root
}
(found version:
${
CNDEV_VERSION_STRING
}
)"
)
cmake/cnml.cmake
浏览文件 @
61c5c9cf
...
...
@@ -40,5 +40,5 @@ set_target_properties(libcnml PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES
${
CNML_INCLUDE_DIR
}
)
message
(
"--
Found CNML:
${
__found_cnml_root
}
(found version:
${
CNML_VERSION_STRING
}
)"
)
message
(
STATUS
"
Found CNML:
${
__found_cnml_root
}
(found version:
${
CNML_VERSION_STRING
}
)"
)
cmake/cnrt.cmake
浏览文件 @
61c5c9cf
...
...
@@ -40,5 +40,5 @@ set_target_properties(libcnrt PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES
${
CNRT_INCLUDE_DIR
}
)
message
(
"--
Found CNRT:
${
__found_cnrt_root
}
(found version:
${
CNRT_VERSION_STRING
}
)"
)
message
(
STATUS
"
Found CNRT:
${
__found_cnrt_root
}
(found version:
${
CNRT_VERSION_STRING
}
)"
)
cmake/cpuinfo.cmake
浏览文件 @
61c5c9cf
if
(
MGE_USE_SYSTEM_LIB
)
find_package
(
Cpuinfo
)
message
(
"Using system provided cpuinfo
${
cpuinfo_VERSION
}
"
)
message
(
STATUS
"Using system provided cpuinfo
${
cpuinfo_VERSION
}
"
)
add_library
(
libcpuinfo IMPORTED GLOBAL
)
set_target_properties
(
libcpuinfo PROPERTIES
...
...
cmake/cudnn.cmake
浏览文件 @
61c5c9cf
...
...
@@ -63,4 +63,4 @@ set_target_properties(libcudnn PROPERTIES
IMPORTED_LOCATION
${
CUDNN_LIBRARY
}
INTERFACE_INCLUDE_DIRECTORIES
${
CUDNN_INCLUDE_DIR
}
)
message
(
"--
Found CuDNN:
${
__found_cudnn_root
}
(found version:
${
CUDNN_VERSION
}
)"
)
message
(
STATUS
"
Found CuDNN:
${
__found_cudnn_root
}
(found version:
${
CUDNN_VERSION
}
)"
)
cmake/flatbuffers.cmake
浏览文件 @
61c5c9cf
if
(
MGE_USE_SYSTEM_LIB
)
find_package
(
Flatbuffers REQUIRED
)
message
(
"Using system provided Flatbuffers
${
Flatbuffers_VERSION
}
"
)
message
(
STATUS
"Using system provided Flatbuffers
${
Flatbuffers_VERSION
}
"
)
include
(
cmake/BuildFlatBuffers.cmake
)
return
()
endif
()
if
(
MSVC OR WIN32
)
message
(
"--
add flags flatc for clang-cl build"
)
message
(
DEBUG
"
add flags flatc for clang-cl build"
)
set
(
FLATC_FLAGS
""
)
set
(
FLATC_FLAGS
"
${
FLATC_FLAGS
}
-Wno-error=unknown-argument -Wno-error=c++98-compat -Wno-error=reserved-id-macro"
)
set
(
FLATC_FLAGS
"
${
FLATC_FLAGS
}
-Wno-error=sign-conversion -Wno-error=exceptions -Wno-error=argument-outside-range"
)
...
...
cmake/mkl.cmake
浏览文件 @
61c5c9cf
...
...
@@ -13,7 +13,7 @@ find_path(MKL_ROOT_DIR
if
(
${
MKL_ROOT_DIR
}
STREQUAL
"MKL_ROOT_DIR-NOTFOUND"
)
message
(
FATAL_ERROR
"Can not find MKL"
)
endif
()
message
(
"--
Build with MKL in
${
MKL_ROOT_DIR
}
"
)
message
(
STATUS
"
Build with MKL in
${
MKL_ROOT_DIR
}
"
)
find_path
(
MKL_INCLUDE_DIR
mkl_cblas.h
...
...
cmake/tensorrt.cmake
浏览文件 @
61c5c9cf
...
...
@@ -59,5 +59,5 @@ set_target_properties(libnvinfer PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES
${
TRT_INCLUDE_DIR
}
)
message
(
"--
Found TensorRT:
${
__found_trt_root
}
(found version:
${
TRT_VERSION_STRING
}
)"
)
message
(
STATUS
"
Found TensorRT:
${
__found_trt_root
}
(found version:
${
TRT_VERSION_STRING
}
)"
)
imperative/CMakeLists.txt
浏览文件 @
61c5c9cf
...
...
@@ -56,7 +56,7 @@ if (APPLE)
elseif
(
MSVC OR WIN32
)
# Windows does not support implicitly importing data members from DLL.
target_link_libraries
(
${
MODULE_NAME
}
PRIVATE megbrain megdnn
)
message
(
"--
CMAKE_MSVC_RUNTIME_LIBRARY:
${
CMAKE_MSVC_RUNTIME_LIBRARY
}
"
)
message
(
STATUS,
"
CMAKE_MSVC_RUNTIME_LIBRARY:
${
CMAKE_MSVC_RUNTIME_LIBRARY
}
"
)
set_target_properties
(
${
MODULE_NAME
}
PROPERTIES MSVC_RUNTIME_LIBRARY
"
${
CMAKE_MSVC_RUNTIME_LIBRARY
}
"
)
else
()
if
(
MGE_WITH_PYTHON_MODULE
)
...
...
@@ -67,7 +67,7 @@ else()
# elf section on both megengine_export and target which depend on megengine_export
target_link_libraries
(
${
MODULE_NAME
}
PRIVATE megbrain megdnn -Wl,--version-script=
${
MGE_VERSION_SCRIPT
}
)
if
(
MGE_WITH_DISTRIBUTED
)
message
(
"--
Imperative configured to link megray"
)
message
(
VERBOSE
"
Imperative configured to link megray"
)
target_link_libraries
(
${
MODULE_NAME
}
PRIVATE megray
)
endif
()
endif
()
...
...
@@ -84,7 +84,7 @@ set_target_properties(${MODULE_NAME} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY
${
MEGENGINE_DIR
}
/
${
PACKAGE_NAME
}
/core
)
if
(
APPLE OR MSVC OR WIN32
)
message
(
"--
overwriting SUFFIX at macos and windows before config by set_target_properties"
)
message
(
VERBOSE
"
overwriting SUFFIX at macos and windows before config by set_target_properties"
)
pybind11_extension
(
${
MODULE_NAME
}
)
endif
()
add_dependencies
(
${
MODULE_NAME
}
gen_opr_py _version_ld
)
...
...
imperative/python/megengine/version.py
浏览文件 @
61c5c9cf
...
...
@@ -6,5 +6,5 @@
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
__version__
=
"
1.0
.0"
__version__
=
"
0.8
.0"
src/CMakeLists.txt
浏览文件 @
61c5c9cf
...
...
@@ -186,11 +186,11 @@ set (_VER_FILE ${PROJECT_SOURCE_DIR}/src/version.ld)
if
(
MGE_BUILD_IMPERATIVE_RT
)
message
(
"--
create a export SHARED lib for python use"
)
message
(
VERBOSE
"
create a export SHARED lib for python use"
)
add_library
(
megengine_export SHARED
)
target_link_libraries
(
megengine_export PUBLIC megbrain megdnn
)
if
(
MGE_WITH_DISTRIBUTED
)
message
(
"--
megengine_export configured to link megray"
)
message
(
VERBOSE
"
megengine_export configured to link megray"
)
target_link_libraries
(
megengine_export PUBLIC megray
)
endif
()
endif
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录