]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml : add logging for native build options/vars (whisper/2935)
authorDaniel Bevenius <redacted>
Mon, 24 Mar 2025 08:53:38 +0000 (09:53 +0100)
committerGeorgi Gerganov <redacted>
Sun, 30 Mar 2025 05:33:31 +0000 (08:33 +0300)
commite408d4351a4ad143656672479d8ae1479306ce31
treeca35a57aead0895310c4c5eeeca4bdc0fd7381a7
parent3891e183c61c1e25c2c61afe68d7b95019ea3f89
ggml : add logging for native build options/vars (whisper/2935)

This commit adds debug level logging for the native build options and
variables to ggml/CMakeLists.txt.

The motivation for this is that it can be useful to see the effective
result of `GGML_NATIVE`, `GGML_NATIVE_DEFAULT`, and `INS_ENB` for a
cmake build. I've found myself adding similar logging a few times now,
so I thought it might be a good idea to add this.

Example output, specifying `-DCMAKE_MESSAGE_LOG_LEVEL=DEBUG` when
running cmake produces the following output:
```console
-- GGML_NATIVE         : OFF
-- GGML_NATIVE_DEFAULT : OFF
-- INS_ENB             : OFF
```
ggml/CMakeLists.txt