From: Georgi Gerganov Date: Fri, 7 Oct 2022 18:56:44 +0000 (+0300) Subject: ref #11, #18, #26 : fix CACHE_LINE_SIZE constant X-Git-Tag: upstream/1.7.4~1992 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=e29a5dacc62b88c834c4be6a07bf22c5bc130434;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp ref #11, #18, #26 : fix CACHE_LINE_SIZE constant --- diff --git a/ggml.c b/ggml.c index 58944893..a87e8dbc 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);