Skip to content

Commit

Permalink
Use coreml/metal on Apple
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Jul 31, 2024
1 parent 5bca2ff commit a173e22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/whisper-utils/whisper-processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ struct whisper_context *init_whisper_context(const std::string &model_path_in,
#elif defined(LOCALVOCAL_WITH_HIPBLAS)
cparams.use_gpu = true;
obs_log(LOG_INFO, "Using hipBLAS for inference");
#elif defined(__APPLE__)
cparams.use_gpu = true;
obs_log(LOG_INFO, "Using Metal/CoreML for inference");
#else
cparams.use_gpu = false;
obs_log(LOG_INFO, "Using CPU for inference");
Expand Down

0 comments on commit a173e22

Please sign in to comment.