ggml-zdnn: implement at least 1 op to test

Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
This commit is contained in:
Aaron Teo
2025-07-24 00:44:05 +08:00
parent 9e84742e72
commit 13c05872f2

View File

@@ -10,6 +10,10 @@
static bool ggml_backend_zdnn_compute_forward(struct ggml_backend_zdnn_context * ctx, struct ggml_tensor * dst) {
switch (dst->op) {
case GGML_OP_MUL_MAT:
{
std::raise(SIGINT);
} break;
default:
return false;
}
@@ -154,6 +158,9 @@ static bool ggml_zdnn_supports_op(const struct ggml_backend_zdnn_device_context
case GGML_OP_CONCAT:
return true;
case GGML_OP_MUL_MAT:
return true;
default:
return false;
}