Skip to content

Commit ecddb24

Browse files
committed
fix: hbw_posix_memalign alignment
1 parent de7836a commit ecddb24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ void * ggml_aligned_malloc(size_t size) {
395395
}
396396
void * aligned_memory = NULL;
397397
#ifdef GGML_USE_CPU_HBM
398-
int result = hbw_posix_memalign(&aligned_memory, 16, size);
398+
int result = hbw_posix_memalign(&aligned_memory, TENSOR_ALIGNMENT, size);
399399
#elif TARGET_OS_OSX
400400
kern_return_t alloc_status = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t *) &aligned_memory, size, VM_FLAGS_ANYWHERE);
401401
int result = EFAULT;

0 commit comments

Comments
 (0)