1: installl Visual Studio (need support LLVM/clang-cl), eg 2019. Please install LLVM-10/11, VS LLVM linker have issue, please replace lld-link.exe, which can be download from https://releases.llvm.org/download.html#10.0.0, what`s more, Visual Studio cl.exe version >=14.28.29910 do not compat with cuda 10.1, please do not use this issue version!
1: install git (Windows GUI)
2: install extension of VS: Python/Cmake/LLVM/Ninja
* download git-install.exe from https://git-scm.com/download/win
3: now we support cuda10.1+cudnn7.6+TensorRT6.0 on Windows, as Windows can only use DLL in fact with cudnn/TensorRT, so please install the same version;
* only need choose git-lfs component
3a: install cuda10.1 to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1
* install to default dir: /c/Program\ Files/Git
3b: install cudnn7.6 to C:\Program Files\NVIDIA GPU Computing Toolkit\cudnn-10.1-windows10-x64-v7.6.5.32
2: install visual studio 2019 Enterprise (Windows GUI)
3c: install TensorRT6.0 to C:\Program Files\NVIDIA GPU Computing Toolkit\TensorRT-6.0.1.5
* download install exe from https://visualstudio.microsoft.com
3d: add C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin to system PATH env
* choose "c++ develop" -> choose cmake/MSVC/clang/cmake/windows-sdk when install
3e: add C:\Program Files\NVIDIA GPU Computing Toolkit\cudnn-10.1-windows10-x64-v7.6.5.32\cuda\bin to system Path env
* NOTICE: windows sdk version >=14.28.29910 do not compat with CUDA 10.1, please
3f: add C:\Program Files\NVIDIA GPU Computing Toolkit\TensorRT-6.0.1.5\lib Path, if you do not do 4d/4e/4f, CUDA runtime can not find dll
choose version < 14.28.29910
4: install Python3 (default is 3.8.3) to /c/Users/${USER}/mge_whl_python_env/3.8.3 and put it to PATH env and run python3 -m pip install numpy (if you want to build with training mode)
* then install choosed components
* after install visual studio 2019 Enterprise, time to replace lld-link.exe
caused by visual studio 2019 lld-link.exe have crash issue
download office exe from https://releases.llvm.org/download.html
install to default: C:\Program Files\LLVM
cd "/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/Llvm/bin"
@@ -55,10 +94,8 @@ Now we support Windows/Linux/MacOS cross build to ARM-Android
...
@@ -55,10 +94,8 @@ Now we support Windows/Linux/MacOS cross build to ARM-Android
* commands:
* commands:
```
```
1: install unix-like tools, eg MSYS if you are using windows(recommend), we also support CMD.exe or powershell on windows
2: download NDK from https://developer.android.google.cn/ndk/downloads/ for diff OS platform package, suggested NDK20 or NDK21
2: download NDK from https://developer.android.google.cn/ndk/downloads/ for diff OS platform package, suggested NDK20 or NDK21
3: export NDK_ROOT=NDK_DIR at bash-like env
3: export NDK_ROOT=NDK_DIR at bash-like env
4: config NDK_ROOT to PATH env at windows control board if use CMD/powershell
```
```
### Cross build for ARM-Linux
### Cross build for ARM-Linux
...
@@ -72,7 +109,7 @@ Now we support ARM-Linux on Linux and Windows fully, also experimental on MacOS
...
@@ -72,7 +109,7 @@ Now we support ARM-Linux on Linux and Windows fully, also experimental on MacOS
### Cross build for IOS
### Cross build for IOS
Now we only support cross build to IOS from MACOS
Now we only support cross build to IOS from MACOS
* commands:
* commands:
```
```
1: install full xcode: https://developer.apple.com/xcode/
1: install full xcode: https://developer.apple.com/xcode/
...
@@ -87,7 +124,7 @@ With bash env(Linux/MacOS/Unix-Like tools on Windows, eg: msys etc)
...
@@ -87,7 +124,7 @@ With bash env(Linux/MacOS/Unix-Like tools on Windows, eg: msys etc)
./third_party/install-mkl.sh
./third_party/install-mkl.sh
```
```
Windows shell env(eg, CMD, Powershell etc), infact if you can use git command on Windows, which means you always install bash.exe at the same dir of git.exe, find it, then you can prepare third-party code by
Windows shell env(bash from windows-git), infact if you can use git command on Windows, which means you always install bash.exe at the same dir of git.exe, find it, then you can prepare third-party code by