fix: increase page size to 32
on iOS
This commit is contained in:
parent
1516f7b790
commit
4455c7f073
1 changed files with 2 additions and 1 deletions
|
@ -414,7 +414,8 @@ void * ggml_aligned_malloc(size_t size) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#elif GGML_USE_METAL
|
#elif GGML_USE_METAL
|
||||||
int result = posix_memalign(&aligned_memory, sysconf(_SC_PAGESIZE), size);
|
const auto page_size = sysconf(_SC_PAGESIZE);
|
||||||
|
int result = posix_memalign(&aligned_memory, MAX(TENSOR_ALIGNMENT, page_size), sysconf(_SC_PAGESIZE), size);
|
||||||
#else
|
#else
|
||||||
int result = posix_memalign(&aligned_memory, TENSOR_ALIGNMENT, size);
|
int result = posix_memalign(&aligned_memory, TENSOR_ALIGNMENT, size);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue