Skip to content

Commit 7e53968

Browse files
committed
fix padding
1 parent b822399 commit 7e53968

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ggml/include/ggml.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,9 @@ extern "C" {
638638
void * extra; // extra things e.g. for ggml-cuda.cu
639639

640640
#ifdef GGML_NUMA_MIRROR
641-
char padding[4];
641+
char padding[10];
642+
#else
643+
char padding[8];
642644
#endif
643645
};
644646

ggml/src/ggml.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,9 +1672,7 @@ static struct ggml_tensor * ggml_new_tensor_impl(
16721672
#endif
16731673
/*.name =*/ { 0 },
16741674
/*.extra =*/ NULL,
1675-
#ifdef GGML_NUMA_MIRROR
16761675
/*.padding =*/ { 0 },
1677-
#endif
16781676
};
16791677

16801678
// TODO: this should not be needed as long as we don't rely on aligned SIMD loads

0 commit comments

Comments
 (0)