Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
5 years ago | |
---|---|---|
.github | 5 years ago | |
ci | 5 years ago | |
cmake | 5 years ago | |
dnn | 4 years ago | |
python_module | 4 years ago | |
scripts/cmake-build | 5 years ago | |
sdk | 4 years ago | |
src | 4 years ago | |
test | 4 years ago | |
third_party | 5 years ago | |
toolchains | 4 years ago | |
tools/param_defs | 4 years ago | |
.gitattributes | 5 years ago | |
.gitignore | 5 years ago | |
.gitmodules | 5 years ago | |
ACKNOWLEDGMENTS | 5 years ago | |
CMakeLists.txt | 4 years ago | |
CODE_OF_CONDUCT.md | 5 years ago | |
CONTRIBUTOR_LICENSE_AGREEMENT.md | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 5 years ago | |
README_CN.md | 5 years ago | |
logo.png | 5 years ago |
English | 中文
MegEngine is a fast, scalable and easy-to-use deep learning framework, with auto-differentiation.
NOTE: MegEngine now only supports Linux platform with Python 3.5 or higher. On Windows 10 you could try WSL(Windows Subsystem for Linux) to use Linux within Windows.
Commands to install from binaries via pip wheels are as follows:
pip3 install megengine -f https://megengine.org.cn/whl/mge.html
Most of the dependencies of MegEngine are located in third_party
directory, and you do
not need to install these by yourself. you can prepare these repositories by executing:
./third_party/prepare.sh
./third_party/install-mkl.sh
But some dependencies should be manually installed:
MegEngine prefers Out-Of-Source
flavor, and compile in a mostly-static
way.
Here are the instructions:
Make a directory for the build.
mkdir -p build
cd build
Generate build configurations by CMake
.
For CUDA build:
cmake .. -DMGE_WITH_TEST=ON
For CPU only build, use -DMGE_WITH_CUDA=OFF
:
cmake .. -DMGE_WITH_CUDA=OFF -DMGE_WITH_TEST=ON
For deployment with C++ only, use -DMGE_INFERENCE_ONLY=ON
, and turn off test with -DMGE_WITH_TEST=OFF
:
cmake .. -DMGE_INFERENCE_ONLY=ON -DMGE_WITH_TEST=OFF
Use -DCMAKE_INSTALL_PREFIX=YOUR_PATH
to specify the install path.
Start to build.
make -j$(nproc)
[optional] Install the library if compiled for deployment at step 2.
make install
Here are some other useful options for the build.
MGE_ARCH
specifies which arch MegEngine are building for. (default AUTO)MGE_WITH_DISTRIBUTED
if multiple machine distributed support is enabled. (default ON)MGE_WITH_PYTHON_MODULE
if build python module. (default ON)MGE_BLAS
chooses MKL
or OpenBLAS
as BLAS library for MegEngine. (default MKL
)MGE_CUDA_GENCODE
supplies the -gencode
option for nvcc
. (default not supply)MGE_DISABLE_FLOAT16
if disable float16 support. (default OFF)MGE_ENABLE_EXCEPTIONS
if enable exception support in C++. (default ON)MGE_ENABLE_LOGGING
if enable logging in MegEngine. (default AUTO)More options can be found by:
cd build
cmake -LAH .. 2>/dev/null| grep -B 1 'MGE_' | less
We believe we can build an open and friendly community and power humanity with AI.
MegEngine is Licensed under the Apache License, Version 2.0
Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
MegEngine 安装包中集成了使用 GPU 运行代码所需的 CUDA 环境,不用区分 CPU 和 GPU 版。 如果想要运行 GPU 程序,请确保机器本身配有 GPU 硬件设备并安装好驱动。 如果你想体验在云端 GPU 算力平台进行深度学习开发的感觉,欢迎访问 MegStudio 平台
C++ Cuda Python C SVG other