File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff 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-
785784void * 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}
You can’t perform that action at this time.
0 commit comments