-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/restructure-port-map
- Loading branch information
Showing
4 changed files
with
181 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
## ion-kit Linux Install | ||
|
||
### 1. Install LLVM | ||
#### a. Using a binary release (Preferred for all systems) | ||
Find latest binary release [here](https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.1) for your supported system. | ||
|
||
### 2. Install Halide | ||
#### a. Using a binary release (Preferred for all systems) | ||
Find latest binary release [here](https://github.com/halide/Halide/releases/tag/v16.0.0) for your supported system. | ||
```sh | ||
curl -L https://github.com/halide/Halide/releases/download/v12.0.1/Halide-12.0.1-x86-64-linux-5dabcaa9effca1067f907f6c8ea212f3d2b1d99a.tar.gz | tar zx <path-to-halide-install> | ||
``` | ||
|
||
#### b. Build from source | ||
##### 2.b.1. Build and install LLVM | ||
Halide v16.0.1 requires LLVM 16. In the following, assume install LLVM-16.0. | ||
|
||
```sh | ||
git clone https://github.com/llvm/llvm-project.git -b release/16.x --depth=1 | ||
cd llvm-project | ||
mkdir build && cd build | ||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=<path-to-llvm-install> -DLLVM_ENABLE_PROJECTS="clang;lld;clang-tools-extra" -DLLVM_TARGETS_TO_BUILD="X86;ARM;NVPTX;AArch64;Mips;Hexagon;PowerPC;AMDGPU;RISCV" -DLLVM_ENABLE_TERMINFO=OFF -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_BUILD_32_BITS=OFF ../llvm | ||
cmake --build . --target install | ||
``` | ||
|
||
##### 2.b.2 Build and install Halide | ||
```sh | ||
git clone https://github.com/halide/Halide.git -b v16.0.0 --depth=1 | ||
mkdir build && cd build | ||
cmake -GNinja -DCMAKE_INSTALL_PREFIX=<path-to-halide-install> -DLLVM_DIR=<path-to-llvm-install>/lib/cmake/llvm/ -DHALIDE_ENABLE_RTTI=ON -DWITH_APPS=OFF .. | ||
cmake --build . --target install | ||
``` | ||
|
||
### 3. Install onnxruntime (Optional, if you use ion-bb-dnn) | ||
If you use only cpu, you can get binary release. | ||
Please visit official onnxruntime [github](https://github.com/microsoft/onnxruntime/releases/tag/v1.16.3) for latest release. | ||
|
||
```sh | ||
curl -L https://github.com/microsoft/onnxruntime/releases/download/v1.4.0/onnxruntime-linux-x64-1.4.0.tgz | tar zx -C <path-to-onnxruntime-install> | ||
``` | ||
|
||
Add directory to `ldconfig` | ||
``` | ||
sudo vim /etc/ld.so.conf | ||
sudo ldconfig | ||
``` | ||
|
||
* Please note, latest version of onnxruntime with GPU only supports `CUDA 1.8` | ||
* `libcudnn8` will also be needed if you run with GPU, please install with: | ||
``` | ||
sudo apt-get install libcudnn8 | ||
``` | ||
|
||
### 4. Place additional building blocks (Appendix) | ||
If you want to use additional `ion-bb-xx` directories, place them directly under `ion-kit` directory. | ||
|
||
### 5. Install OpenCV | ||
#### a. Using Package Managers | ||
##### 5.a.1 Linux | ||
``` | ||
sudo apt install libopencv-dev | ||
``` | ||
|
||
### 6. Install Generators | ||
#### a. Using Package Managers | ||
##### 6.a.1 Linux | ||
``` | ||
sudo apt-get install ninja-build | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
## ion-kit MacOS Install | ||
|
||
### 1. Install LLVM | ||
#### a. Using a binary release (Preferred for all systems) | ||
Find latest binary release [here](https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.1) for your supported system. | ||
#### b. Install with Package Managers | ||
##### 1.b.1. Install with Brew (MacOS) | ||
``` | ||
brew install llvm@16 | ||
``` | ||
|
||
### 2. Install Halide | ||
#### a. Using a binary release (Preferred for all systems) | ||
Find latest binary release [here](https://github.com/halide/Halide/releases/tag/v16.0.0) for your supported system. | ||
```sh | ||
curl -L https://github.com/halide/Halide/releases/download/v12.0.1/Halide-12.0.1-x86-64-linux-5dabcaa9effca1067f907f6c8ea212f3d2b1d99a.tar.gz | tar zx <path-to-halide-install> | ||
``` | ||
#### b. Install with Package Managers | ||
##### 2.b.1. Install with Brew (MacOS) | ||
``` | ||
brew install Halide@16 | ||
``` | ||
Use `brew info` to install and check missing dependencies (including `llvm16`) | ||
|
||
#### c. Build from source | ||
##### 2.c.1. Build and install LLVM | ||
Halide v16.0.1 requires LLVM 16. In the following, assume install LLVM-16.0. | ||
|
||
```sh | ||
git clone https://github.com/llvm/llvm-project.git -b release/16.x --depth=1 | ||
cd llvm-project | ||
mkdir build && cd build | ||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=<path-to-llvm-install> -DLLVM_ENABLE_PROJECTS="clang;lld;clang-tools-extra" -DLLVM_TARGETS_TO_BUILD="X86;ARM;NVPTX;AArch64;Mips;Hexagon;PowerPC;AMDGPU;RISCV" -DLLVM_ENABLE_TERMINFO=OFF -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_BUILD_32_BITS=OFF ../llvm | ||
cmake --build . --target install | ||
``` | ||
|
||
##### 2.c.2 Build and install Halide | ||
```sh | ||
git clone https://github.com/halide/Halide.git -b v16.0.0 --depth=1 | ||
mkdir build && cd build | ||
cmake -GNinja -DCMAKE_INSTALL_PREFIX=<path-to-halide-install> -DLLVM_DIR=<path-to-llvm-install>/lib/cmake/llvm/ -DHALIDE_ENABLE_RTTI=ON -DWITH_APPS=OFF .. | ||
cmake --build . --target install | ||
``` | ||
|
||
### 3. Install onnxruntime (Optional, if you use ion-bb-dnn) | ||
**Not currently supported on MacOS.** | ||
|
||
### 4. Place additional building blocks (Appendix) | ||
If you want to use additional `ion-bb-xx` directories, place them directly under `ion-kit` directory. | ||
|
||
### 5. Install OpenCV | ||
#### a. Using Package Managers | ||
##### 5.a.1 MacOS | ||
``` | ||
brew install opencv | ||
``` | ||
|
||
### 6. Install Generators | ||
#### a. Using Package Managers | ||
##### 6.a.1 MacOS | ||
``` | ||
brew install ninja | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## ion-kit Windows Install | ||
|
||
### 1. Install LLVM | ||
#### a. Using a binary release (Preferred for all systems) | ||
Find latest binary release [here](https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.1) for your supported system. | ||
|
||
### 2. Install Halide | ||
#### a. Using a binary release (Preferred for all systems) | ||
Find latest binary release [here](https://github.com/halide/Halide/releases/tag/v16.0.0) for your supported system. | ||
|
||
### 3. Install onnxruntime (Optional, if you use ion-bb-dnn) | ||
WIP | ||
|
||
### 4. Place additional building blocks (Appendix) | ||
If you want to use additional `ion-bb-xx` directories, place them directly under ` `ion-kit` directory. | ||
|
||
### 5. Install OpenCV | ||
#### a. Using Installers | ||
##### 5.a.1 Windows | ||
Download and install latest from [OpenCV](https://sourceforge.net/projects/opencvlibrary/files/) | ||
|
||
### 6. Install Generators | ||
Please install the latest version of Microsoft Visual Studio. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters