Skip to content

Commit 4993984

Browse files
Address PR review feedback: Keep GGML_ASSERT for early misconfiguration detection
- Add GGML_LOG_DEBUG message to warn when no suitable kernel is available - Keep GGML_ASSERT(ctx.kernels) to catch misconfigurations early as suggested by chaxu01 - This provides both debugging information and early error detection
1 parent bc3d2c0 commit 4993984

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ggml/src/ggml-cpu/kleidiai/kleidiai.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ class tensor_traits : public ggml::cpu::tensor_traits {
357357
public:
358358
int repack(struct ggml_tensor * tensor, const void * data, size_t data_size) {
359359
if (!ctx.kernels) {
360+
GGML_LOG_DEBUG("%s: No suitable KleidiAI kernel available, falling back to standard CPU implementation\n", __func__);
360361
return -1; // No suitable kernel available
361362
}
362363
const size_t n = tensor->ne[1];

0 commit comments

Comments
 (0)