Skip to content

Commit

Permalink
feat(ios): add RNWHISPER_ENABLE_METAL env in podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Oct 11, 2023
1 parent f044d6b commit 34fe9a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions whisper-rn.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ if ENV['RNWHISPER_DISABLE_COREML'] != '1' then
base_compiler_flags += " -DWHISPER_USE_COREML -DWHISPER_COREML_ALLOW_FALLBACK"
end

# TODO: Enable Metal
# if ENV["RNWHISPER_DISABLE_METAL"] != "1" then
# base_compiler_flags += " -DWSP_GGML_USE_METAL" # -DWSP_GGML_METAL_NDEBUG
# end
# TODO: Enable Metal by default when we have use_gpu param
if ENV["RNWHISPER_ENABLE_METAL"] == "1" then
base_compiler_flags += " -DWSP_GGML_USE_METAL" # -DWSP_GGML_METAL_NDEBUG
end

Pod::Spec.new do |s|
s.name = "whisper-rn"
Expand Down

0 comments on commit 34fe9a6

Please sign in to comment.