Skip to content

Commit

Permalink
enable metal again
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Aug 22, 2024
1 parent d906be3 commit 18018ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ winreg = "0.52.0"
# macOS
[target.'cfg(target_os = "macos")'.dependencies]
# TODO: use metal? https://github.com/ggerganov/whisper.cpp/discussions/1722
vibe_core = { path = "../../core", features = ["coreml"] }
vibe_core = { path = "../../core", features = ["coreml", "metal"] }
cocoa = "0.25.0"
screencapturekit = { version = "0.2.8", features = ["ci"] }
screencapturekit-sys = "0.2.8"
Expand Down
5 changes: 2 additions & 3 deletions scripts/pre_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,8 @@ if (process.env.GITHUB_ENV) {
await fs.appendFile(process.env.GITHUB_ENV, ffmpeg)
}
if (platform == 'macos') {
// TODO: handle metal
// const embed_metal = 'WHISPER_METAL_EMBED_LIBRARY=ON'
// await fs.appendFile(process.env.GITHUB_ENV, embed_metal)
const embed_metal = 'WHISPER_METAL_EMBED_LIBRARY=ON'
await fs.appendFile(process.env.GITHUB_ENV, embed_metal)
}
if (platform == 'windows') {
const openblas = `OPENBLAS_PATH=${exports.openBlas}\n`
Expand Down

0 comments on commit 18018ff

Please sign in to comment.