From 532cb9b99ca94085a14bd5699ca7a58efa36900d Mon Sep 17 00:00:00 2001 From: slaren Date: Sun, 24 Dec 2023 12:26:35 +0100 Subject: [PATCH] act_size -> actual_size --- ggml-cuda.cu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ggml-cuda.cu b/ggml-cuda.cu index b5679c42f..ac3b3c14d 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -6758,12 +6758,12 @@ static void ggml_cuda_pool_free(void * ptr, size_t size) { template struct cuda_pool_alloc { T * ptr = nullptr; - size_t act_size = 0; + size_t actual_size = 0; // size is in number of elements T * alloc(size_t size) { GGML_ASSERT(ptr == nullptr); - ptr = (T *) ggml_cuda_pool_malloc(size * sizeof(T), &this->act_size); + ptr = (T *) ggml_cuda_pool_malloc(size * sizeof(T), &this->actual_size); return ptr; } @@ -6773,7 +6773,7 @@ struct cuda_pool_alloc { ~cuda_pool_alloc() { if (ptr != nullptr) { - ggml_cuda_pool_free(ptr, act_size); + ggml_cuda_pool_free(ptr, actual_size); } }