diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2024-04-20 13:27:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-20 13:27:12 +0300 |
commit | aed82f6837a3ea515f4d50201cfc77effc7d41b4 (patch) | |
tree | b4b2f46aeecb921624421dccf6d4376848121b7f | |
parent | 0e4802b2ecbaab04b4f829fde4a3096ca19c84b5 (diff) |
common : try to fix Android CI (#6780)
* common : disable get_math_cpu_count() until Android CI gets fixed
* common : another try
-rw-r--r-- | common/common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/common.cpp b/common/common.cpp index cf69535e..b6143e41 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -108,7 +108,7 @@ int32_t get_num_physical_cores() { return n_threads > 0 ? (n_threads <= 4 ? n_threads : n_threads / 2) : 4; } -#if defined(__x86_64__) && defined(__linux__) +#if defined(__x86_64__) && defined(__linux__) && !defined(__ANDROID__) #include <pthread.h> static void cpuid(unsigned leaf, unsigned subleaf, @@ -162,7 +162,7 @@ static int count_math_cpus(int cpu_count) { * Returns number of CPUs on system that are useful for math. */ int get_math_cpu_count() { -#if defined(__x86_64__) && defined(__linux__) +#if defined(__x86_64__) && defined(__linux__) && !defined(__ANDROID__) int cpu_count = sysconf(_SC_NPROCESSORS_ONLN); if (cpu_count < 1) { return get_num_physical_cores(); |