Skip to content

Commit a665a0c

Browse files
committed
remove unncessary ifdef
1 parent 4f7562d commit a665a0c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ggml/src/ggml-cpu/ggml-cpu.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -781,14 +781,12 @@ bool ggml_is_numa(void) {
781781
// the best speed. Interleaving actually slows things down considerably.
782782
// If we optimised kernels for Numa awareness, this could be revisited.
783783
//
784-
785784
void* ggml_numa_alloc_work_buffer(size_t size) {
786785
void* ptr = malloc(size);
787786
if (!ptr) {
788787
return NULL;
789788
}
790789

791-
#ifdef GGML_USE_NUMA
792790
if (ggml_is_numa()) {
793791
// Bind to NUMA node 0 using first-touch policy
794792
if (numa_available() >= 0) {
@@ -815,10 +813,6 @@ void* ggml_numa_alloc_work_buffer(size_t size) {
815813
// No NUMA, just touch the pages for consistency
816814
memset(ptr, 0, size);
817815
}
818-
#else
819-
// No NUMA support, just touch the pages
820-
memset(ptr, 0, size);
821-
#endif
822816

823817
return ptr;
824818
}

0 commit comments

Comments
 (0)