Spaces:
Running
Running
ggml : add logging for native build options/vars (#2935)
Browse filesThis 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 +4 -0
ggml/CMakeLists.txt
CHANGED
|
@@ -100,6 +100,10 @@ else()
|
|
| 100 |
set(INS_ENB ON)
|
| 101 |
endif()
|
| 102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
option(GGML_CPU_HBM "ggml: use memkind for CPU HBM" OFF)
|
| 104 |
option(GGML_CPU_AARCH64 "ggml: use runtime weight conversion of Q4_0 to Q4_X_X" ON)
|
| 105 |
option(GGML_CPU_KLEIDIAI "ggml: use KleidiAI optimized kernels if applicable" OFF)
|
|
|
|
| 100 |
set(INS_ENB ON)
|
| 101 |
endif()
|
| 102 |
|
| 103 |
+
message(DEBUG "GGML_NATIVE : ${GGML_NATIVE}")
|
| 104 |
+
message(DEBUG "GGML_NATIVE_DEFAULT : ${GGML_NATIVE_DEFAULT}")
|
| 105 |
+
message(DEBUG "INS_ENB : ${INS_ENB}")
|
| 106 |
+
|
| 107 |
option(GGML_CPU_HBM "ggml: use memkind for CPU HBM" OFF)
|
| 108 |
option(GGML_CPU_AARCH64 "ggml: use runtime weight conversion of Q4_0 to Q4_X_X" ON)
|
| 109 |
option(GGML_CPU_KLEIDIAI "ggml: use KleidiAI optimized kernels if applicable" OFF)
|