diff --git a/ggml/src/ggml-cann/ggml-cann.cpp b/ggml/src/ggml-cann/ggml-cann.cpp index 5e5541aac9..b0fff15360 100644 --- a/ggml/src/ggml-cann/ggml-cann.cpp +++ b/ggml/src/ggml-cann/ggml-cann.cpp @@ -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; } diff --git a/ggml/src/ggml-hexagon/ggml-hexagon.cpp b/ggml/src/ggml-hexagon/ggml-hexagon.cpp index e8a5009b38..f066b2c070 100644 --- a/ggml/src/ggml-hexagon/ggml-hexagon.cpp +++ b/ggml/src/ggml-hexagon/ggml-hexagon.cpp @@ -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); diff --git a/ggml/src/ggml-openvino/ggml-openvino.cpp b/ggml/src/ggml-openvino/ggml-openvino.cpp index e299e16c77..22ce251eab 100644 --- a/ggml/src/ggml-openvino/ggml-openvino.cpp +++ b/ggml/src/ggml-openvino/ggml-openvino.cpp @@ -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; diff --git a/ggml/src/ggml-virtgpu/ggml-backend.cpp b/ggml/src/ggml-virtgpu/ggml-backend.cpp index 12756c9282..c4829ae9f8 100644 --- a/ggml/src/ggml-virtgpu/ggml-backend.cpp +++ b/ggml/src/ggml-virtgpu/ggml-backend.cpp @@ -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; diff --git a/tools/profiler/profiler.py b/tools/profiler/profiler.py index 3dd5f6b1da..b81343c8fb 100644 --- a/tools/profiler/profiler.py +++ b/tools/profiler/profiler.py @@ -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)