]> git.djapps.eu Git - pkg/ggml/sources/ggml/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>
Fri, 28 Mar 2025 19:58:15 +0000 (21:58 +0200)
commitbc8fda89e33071e77193b8882767748624499689
tree98786fbb0330e360b39d75e0b5f6c51bbe4ea1ba
parent4b344baace2f9013939717906c15021c7b483d6e
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
```
CMakeLists.txt