Updated 7.-Jami-plugins.md (markdown)
This commit is contained in:
parent
c977f6e837
commit
09527b3bc1
|
@ -214,18 +214,41 @@ make .onnx
|
|||
|
||||
#### Windows
|
||||
|
||||
* Pre-build:
|
||||
|
||||
```bash
|
||||
mkdir pluginsEnv
|
||||
export PLUGIN_ENV=<full-path/pluginsEnv>
|
||||
cd pluginsEnv
|
||||
mkdir onnxruntime
|
||||
mkdir onnxruntime/cpu
|
||||
mkdir onnxruntime/nvidia-gpu
|
||||
mkdir onnxruntime/include
|
||||
git clone https://github.com/microsoft/onnxruntime.git onnx
|
||||
cd onnx
|
||||
git checkout v1.6.0 && git checkout -b v1.6.0
|
||||
```
|
||||
|
||||
* Without acceleration: `.\build.bat --config Release --build_shared_lib --parallel --cmake_generator "Visual Studio 16 2019"`
|
||||
* With CUDA acceleration (CUDA 10.2): `.\build.bat --config Release --build_shared_lib --parallel --cmake_generator "Visual Studio 16 2019" --use_cuda --cudnn_home <cudnn home path> --cuda_home <cuda home path> --cuda_version 10.2`
|
||||
* Without acceleration:
|
||||
|
||||
For further build instructions, please refer to onnruntime official [GitHub](https://github.com/microsoft/onnxruntime/blob/master/BUILD.md).
|
||||
```
|
||||
.\build.bat --config Release --build_shared_lib --parallel --cmake_generator "Visual Studio 16 2019"
|
||||
cp ./build/Windows/Release/Release/onnxruntime.dll ../onnxruntime/cpu/onnxruntime.dll
|
||||
```
|
||||
* With CUDA acceleration (CUDA 10.2):
|
||||
|
||||
```
|
||||
.\build.bat --config Release --build_shared_lib --parallel --cmake_generator "Visual Studio 16 2019"
|
||||
--use_cuda --cudnn_home <cudnn home path> --cuda_home <cuda home path> --cuda_version 10.2
|
||||
cp ./build/Windows/Release/Release/onnxruntime.dll ../onnxruntime/nvidia-gpu/onnxruntime.dll
|
||||
```
|
||||
* Post-build:
|
||||
|
||||
```bash
|
||||
cp -r ./include/onnxruntime/core/ ../onnxruntime/include/
|
||||
```
|
||||
|
||||
For further build instructions, please refer to onnxruntime official [GitHub](https://github.com/microsoft/onnxruntime/blob/master/BUILD.md).
|
||||
|
||||
### Plugin
|
||||
To exemplify a plugin build, we will use the GreenScreen plugin available [here](https://git.jami.net/savoirfairelinux/jami-plugins).
|
||||
|
|
Loading…
Reference in New Issue