Spaces:
Sleeping
Sleeping
ref #11, #18, #26 : fix CACHE_LINE_SIZE constant
Browse files
ggml.c
CHANGED
|
@@ -181,9 +181,9 @@ int64_t ggml_cycles_per_ms(void) {
|
|
| 181 |
//
|
| 182 |
|
| 183 |
#if defined(__cpp_lib_hardware_interference_size)
|
| 184 |
-
|
| 185 |
#else
|
| 186 |
-
|
| 187 |
#endif
|
| 188 |
|
| 189 |
const size_t CACHE_LINE_SIZE_F32 = CACHE_LINE_SIZE/sizeof(float);
|
|
|
|
| 181 |
//
|
| 182 |
|
| 183 |
#if defined(__cpp_lib_hardware_interference_size)
|
| 184 |
+
#define CACHE_LINE_SIZE hardware_destructive_interference_size
|
| 185 |
#else
|
| 186 |
+
#define CACHE_LINE_SIZE 64
|
| 187 |
#endif
|
| 188 |
|
| 189 |
const size_t CACHE_LINE_SIZE_F32 = CACHE_LINE_SIZE/sizeof(float);
|