fix: hbw_posix_memalign
alignment
This commit is contained in:
parent
de7836a4e3
commit
ecddb2452a
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ void * ggml_aligned_malloc(size_t size) {
|
|||
}
|
||||
void * aligned_memory = NULL;
|
||||
#ifdef GGML_USE_CPU_HBM
|
||||
int result = hbw_posix_memalign(&aligned_memory, 16, size);
|
||||
int result = hbw_posix_memalign(&aligned_memory, TENSOR_ALIGNMENT, size);
|
||||
#elif TARGET_OS_OSX
|
||||
kern_return_t alloc_status = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t *) &aligned_memory, size, VM_FLAGS_ANYWHERE);
|
||||
int result = EFAULT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue