Update ggml.c

simplified return for platforms without NUMA support

Co-authored-by: Jared Van Bortel <cebtenzzre@gmail.com>
This commit is contained in:
bmwl 2024-02-15 09:39:32 -08:00 committed by GitHub
parent da652113f1
commit 7d1f026a58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

3
ggml.c
View file

@ -2008,8 +2008,7 @@ static cpu_set_t ggml_get_numa_affinity(void) {
}
#else
static uint32_t ggml_get_numa_affinity(void) {
uint32_t cpuset = 0;
return cpuset; // No NUMA support outside of Linux, so return a safe datatype set to zero
return 0; // no NUMA support
}
#endif