mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2025-02-22 07:40:00 +00:00
fix pthreads setaffinity usage on android (#2020)
This commit is contained in:
parent
0be54f75a6
commit
9d23589d63
1 changed files with 2 additions and 1 deletions
3
ggml.c
3
ggml.c
|
@ -16684,7 +16684,8 @@ typedef pthread_t ggml_thread_t;
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
// Android's libc implementation "bionic" does not support setting affinity
|
||||
#if defined(__linux__) && !defined(__BIONIC__)
|
||||
void set_numa_thread_affinity(int thread_n, int n_threads) {
|
||||
if (!ggml_is_numa()) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue