-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
20 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
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 |
---|---|---|
@@ -1,2 +1,39 @@ | ||
# occ-ai-dep-whispercpp | ||
# Whisper.cpp prebuilt binaries | ||
Whisper.cpp prebuilt binaries for static and dynamic linking | ||
|
||
## Building on Windows | ||
|
||
You will need MSVS 2022 installed. | ||
|
||
Set up environment variables, e.g.: | ||
|
||
```powershell | ||
> $env:BUILD_WITH_ACCEL="cuda" | ||
> $env:CUDA_TOOLKIT_ROOT_DIR="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5" | ||
``` | ||
|
||
Acceleration options: `cpu`, `cuda` and `hipblas` | ||
|
||
For `hipblas` make sure `$env:HIP_PATH` points to the HIP installation folder, e.g. where `$env:HIP_PATH\bin\clang.exe` would be located. | ||
|
||
The HIP installer can be downloaded from https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-24.Q3-Win10-Win11-For-HIP.exe. | ||
|
||
Run the build script: | ||
|
||
```powershell | ||
> ./Build-Windows.ps1 -Version 0.0.6 | ||
``` | ||
|
||
## Building on Mac OS | ||
|
||
Set the `MACOS_ARCH` env variable to `x86_64` or `arm64`: | ||
|
||
```bash | ||
$ export MACOS_ARCH=x86_64 | ||
``` | ||
|
||
Run the build script: | ||
|
||
```bash | ||
$ ./build-macos.sh 0.0.6 | ||
``` |
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