Fix more missing backend stuff (and Python errors)

This commit is contained in:
Piotr Wilkin
2026-03-29 01:57:02 +01:00
committed by Piotr Wilkin
parent 834067f67c
commit b00e3a53a5
5 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -3039,7 +3039,8 @@ ggml_backend_t ggml_backend_cann_init(int32_t device) {
new ggml_backend{ /* .guid = */ ggml_backend_cann_guid(),
/* .interface = */ ggml_backend_cann_interface,
/* .device = */ ggml_backend_reg_dev_get(ggml_backend_cann_reg(), device),
/* .context = */ ctx };
/* .context = */ ctx,
/* .profiler = */ nullptr };
return cann_backend;
}
+1
View File
@@ -3895,6 +3895,7 @@ static ggml_backend_t ggml_backend_hexagon_device_init(ggml_backend_dev_t dev, c
/* .interface = */ hexagon_backend_i,
/* .device = */ dev,
/* .context = */ sess,
/* .profiler = */ nullptr,
};
GGML_UNUSED(params);
+1
View File
@@ -803,6 +803,7 @@ GGML_BACKEND_API ggml_backend_t ggml_backend_openvino_init(int device) {
/* .interface = */ ggml_backend_openvino_interface,
/* .device = */ ggml_backend_reg_dev_get(ggml_backend_openvino_reg(), device),
/* .context = */ ctx,
/* .profiler = */ nullptr,
};
return openvino_backend;
+1
View File
@@ -65,6 +65,7 @@ ggml_backend_t ggml_backend_remoting_device_init(ggml_backend_dev_t dev, const c
/* .interface = */ ggml_backend_remoting_interface,
/* .device = */ ggml_backend_reg_dev_get(ggml_backend_virtgpu_reg(), ctx->device),
/* .context = */ ctx,
/* .profiler = */ nullptr,
};
return remoting_backend;
+1 -1
View File
@@ -223,7 +223,7 @@ class ProfileData:
# Track the ne from the longest individual call
if rec.duration_ns >= s.max_ns:
s.representative_ne = list(rec.ne)
s.representative_ne = list(rec.ne_src0)
return sorted(groups.values(), key=lambda s: s.total_ns, reverse=True)