whisper.cpp/examples
Daniel Bevenius e0f3c9d4dd
examples : add GGML_USE_CPU=ON flag to whisper.objc (#2880)
This commit adds the GGML_USE_CPU=ON flag to the whisper.objc project in
order to enable the CPU backend for the whisper.objc project.

The motivation for this change is that currently the following error
is generated when running the example:
```console
ggml_backend_buffer_type_t ggml_backend_get_default_buffer_type(ggml_backend_t backend) {
    return ggml_backend_dev_buffer_type(backend->device); <- Thread 1: EXC_BAD_ACCESS (code=1, address=0x70)
}
```
If we inspect the `backend` variable we can see that it is a `nullptr`.
```console
(lldb) p backend
(ggml_backend_t) nullptr
```
When running in a simulator and that automatically means that there will
be no gpu as there is a check for this in the code. But the CPU backend
should still be present.

The objective-c code will compile the whisper sources including the ggml
sources. And if `-DGGMLL_USE_CPU` is not defined then there will be no
CPU backend, and in this particular case of backend at all.

Resolves: https://github.com/ggerganov/whisper.cpp/issues/2870
2025-03-14 15:40:20 +01:00
..
addon.node fix: missing include common-whisper (#2858) 2025-03-02 20:55:11 +02:00
bench whisper : support GGML_BACKEND_DL (#2843) 2025-02-27 13:35:07 +01:00
bench.wasm
cli common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
command common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
command.wasm
deprecation-warning examples : handle "main.exe" deprecation 2024-12-30 13:00:18 +02:00
lsp common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
python
quantize
server common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
stream common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
stream.wasm
sycl
talk-llama common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
wchess common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
whisper.android
whisper.android.java
whisper.nvim
whisper.objc examples : add GGML_USE_CPU=ON flag to whisper.objc (#2880) 2025-03-14 15:40:20 +01:00
whisper.swiftui whisper: add xcframework build script (#2873) 2025-03-13 13:56:39 +01:00
whisper.wasm
CMakeLists.txt examples : add dl to the list of libraries linked (#2875) 2025-03-14 04:42:20 +01:00
common-ggml.cpp
common-ggml.h
common-sdl.cpp common : more general m_audio_len update logic (#2855) 2025-03-07 10:10:03 +02:00
common-sdl.h
common-whisper.cpp common : fix audio loading by miniaudio (#2862) 2025-03-04 19:05:21 +02:00
common-whisper.h common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
common.cpp common : fix audio loading by miniaudio (#2862) 2025-03-04 19:05:21 +02:00
common.h common : fix audio loading by miniaudio (#2862) 2025-03-04 19:05:21 +02:00
ffmpeg-transcode.cpp
generate-karaoke.sh examples : use miniaudio for direct decoding flac, mp3, ogg and wav (#2759) 2025-02-27 09:06:54 +02:00
grammar-parser.cpp
grammar-parser.h
helpers.js
json.hpp
livestream.sh whisper : rename binaries + fix install (#2648) 2024-12-21 09:43:49 +02:00
miniaudio.h examples : use miniaudio for direct decoding flac, mp3, ogg and wav (#2759) 2025-02-27 09:06:54 +02:00
stb_vorbis.c examples : use miniaudio for direct decoding flac, mp3, ogg and wav (#2759) 2025-02-27 09:06:54 +02:00
twitch.sh whisper : rename binaries + fix install (#2648) 2024-12-21 09:43:49 +02:00
yt-wsp.sh whisper : rename binaries + fix install (#2648) 2024-12-21 09:43:49 +02:00