diff options
author | Erik Scholz <Green-Sky@users.noreply.github.com> | 2023-06-27 19:06:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 19:06:33 +0200 |
commit | 9d23589d638dc74577d5ff880e6d4248b795f12e (patch) | |
tree | 2887760c215b1ffff48e3d180a26d53c50fadcef | |
parent | 0be54f75a6c3e9a09ea71bdfcdabf9a996a0549b (diff) |
fix pthreads setaffinity usage on android (#2020)
-rw-r--r-- | ggml.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |