Revert "Add OpenVINO support"

This reverts commit 5c140c14
This commit is contained in:
Niko 2023-10-06 21:09:23 -06:00
parent e6cbc75430
commit d6da605de1
No known key found for this signature in database
GPG key ID: 3861E636EA1E0E2B
7 changed files with 3 additions and 130 deletions

View file

@ -44,39 +44,4 @@ You also need to have CMake installed. You can obtain this using homebrew:
brew install cmake
```
CMake can also be installed from https://cmake.org/download/ but `cmake` binary needs to be in your PATH.
# OpenVINO support
## Development Tools
OpenVINO support requires the OpenVINO Development Tools to be installed. You can find
instructions for installing the OpenVINO Development Tools here:
https://docs.openvino.ai/2023.0/openvino_docs_install_guides_install_dev_tools.html#for-c-developers
On Arch Linux, you can install the OpenVINO Development Tools with the following command:
```
paru -S openvino
```
This build may take a significant amount of time, but can save massive headaches later on.
## Building
First, the `openvino` feature must be enabled in your Cargo.toml.
Next, you must set the `OpenVINO_DIR` environment variable to the path where CMake can find
`OpenVINOConfig.cmake`, and the `OpenVINO_SO_DIR` tothe path where the OpenVINO shared
libraries are located.
The former is usually in the `runtime/cmake` directory of the OpenVINO installation, and the latter
is usually in `runtime/lib/intel64`.
If you used the AUR package to install OpenVINO, the location of this file is `/opt/intel/openvino/runtime/cmake`.
```
export OpenVINO_DIR=/opt/intel/openvino/runtime/cmake
```
Finally, you can build whisper-rs as normal.
## Tested platforms
- Arch Linux
If you have successfully built whisper-rs with OpenVINO on another platform, please open a PR to document it here!
CMake can also be installed from https://cmake.org/download/ but `cmake` binary needs to be in your PATH.