From 6dc01b926161e3e8da5a985cbc88107f51920ab5 Mon Sep 17 00:00:00 2001 From: David Ventura Date: Sun, 2 Feb 2025 11:45:33 +0100 Subject: [PATCH] Consider Android targets as SSE3 --- intgemm/intgemm.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/intgemm/intgemm.cc b/intgemm/intgemm.cc index 58e4bc5..c788662 100644 --- a/intgemm/intgemm.cc +++ b/intgemm/intgemm.cc @@ -21,8 +21,9 @@ namespace { // Return the maximum CPU model that's found and supported at compile time. CPUType RealCPUID() { -#if defined(WASM) +#if defined(WASM) || defined(__ANDROID__) // emscripten does SSE4.1 but we only use up to SSSE3. + // Android supports up to SSSE3. return CPUType::SSSE3; #elif defined(__INTEL_COMPILER) # ifdef INTGEMM_COMPILER_SUPPORTS_AVX512VNNI