From e29a5dacc62b88c834c4be6a07bf22c5bc130434 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Fri, 7 Oct 2022 21:56:44 +0300 Subject: [PATCH] ref #11, #18, #26 : fix CACHE_LINE_SIZE constant --- ggml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml.c b/ggml.c index 5894489..a87e8db 100644 --- a/ggml.c +++ b/ggml.c @@ -181,9 +181,9 @@ int64_t ggml_cycles_per_ms(void) { // #if defined(__cpp_lib_hardware_interference_size) - const size_t CACHE_LINE_SIZE = hardware_destructive_interference_size; +#define CACHE_LINE_SIZE hardware_destructive_interference_size #else - const size_t CACHE_LINE_SIZE = 64; +#define CACHE_LINE_SIZE 64 #endif const size_t CACHE_LINE_SIZE_F32 = CACHE_LINE_SIZE/sizeof(float);