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 (#20157) X-Git-Tag: upstream/0.0.8611~389 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=ba2ff79e43bad81fd19ecc8324431c93499e459e;p=pkg%2Fggml%2Fsources%2Fllama.cpp ggml: update comments for backends which have no memory to report (#20157) Signed-off-by: Aaron Teo --- diff --git a/ggml/src/ggml-blas/ggml-blas.cpp b/ggml/src/ggml-blas/ggml-blas.cpp index 2e9ddf224..5de64b816 100644 --- a/ggml/src/ggml-blas/ggml-blas.cpp +++ b/ggml/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/ggml/src/ggml-opencl/ggml-opencl.cpp b/ggml/src/ggml-opencl/ggml-opencl.cpp index 4ef33a776..0a2c86c6e 100644 --- a/ggml/src/ggml-opencl/ggml-opencl.cpp +++ b/ggml/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);