ref #11, #18, #26 : fix CACHE_LINE_SIZE constant

pull/28/head
Georgi Gerganov 2022-10-07 21:56:44 +03:00
parent 844d60b284
commit e29a5dacc6
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735
1 changed files with 2 additions and 2 deletions

4
ggml.c
View File

@ -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);