From 571c4fd849c7b68445b606bea866306f981bc4d7 Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Fri, 20 Jan 2023 20:47:34 -0500 Subject: [PATCH] ggml : set cache line size to 128 on POWER9 --- ggml.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ggml.c b/ggml.c index 16f0f85..f13e224 100644 --- a/ggml.c +++ b/ggml.c @@ -339,8 +339,12 @@ int64_t ggml_cycles_per_ms(void) { #if defined(__cpp_lib_hardware_interference_size) #define CACHE_LINE_SIZE hardware_destructive_interference_size #else +#if defined(__POWER9_VECTOR__) +#define CACHE_LINE_SIZE 128 +#else #define CACHE_LINE_SIZE 64 #endif +#endif static const size_t CACHE_LINE_SIZE_F32 = CACHE_LINE_SIZE/sizeof(float);