From: Aaron Teo Date: Fri, 6 Mar 2026 15:24:38 +0000 (+0800) Subject: ggml: update comments for backends which have no memory to report (llama/20157) X-Git-Tag: v0.9.8~71 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=cbbcf7bfd15b7d34c77900528e6c832fdebed7da;p=pkg%2Fggml%2Fsources%2Fggml ggml: update comments for backends which have no memory to report (llama/20157) Signed-off-by: Aaron Teo --- diff --git a/src/ggml-blas/ggml-blas.cpp b/src/ggml-blas/ggml-blas.cpp index 2e9ddf22..5de64b81 100644 --- a/src/ggml-blas/ggml-blas.cpp +++ b/src/ggml-blas/ggml-blas.cpp @@ -339,8 +339,8 @@ static const char * ggml_backend_blas_device_get_description(ggml_backend_dev_t } static void ggml_backend_blas_device_get_memory(ggml_backend_dev_t dev, size_t * free, size_t * total) { - // TODO - *free = 0; + // no memory to report + *free = 0; *total = 0; GGML_UNUSED(dev); diff --git a/src/ggml-opencl/ggml-opencl.cpp b/src/ggml-opencl/ggml-opencl.cpp index 4ef33a77..0a2c86c6 100644 --- a/src/ggml-opencl/ggml-opencl.cpp +++ b/src/ggml-opencl/ggml-opencl.cpp @@ -5345,7 +5345,8 @@ static const char * ggml_backend_opencl_device_get_description(ggml_backend_dev_ } static void ggml_backend_opencl_device_get_memory(ggml_backend_dev_t dev, size_t * free, size_t * total) { - *free = 0; + // no memory to report + *free = 0; *total = 0; GGML_UNUSED(dev);