From 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:33 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- js/src/intgemm/IntegerGemmIntrinsic.cpp | 14 +++++++++----- js/src/intgemm/moz.build | 6 ++++++ 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'js/src/intgemm') diff --git a/js/src/intgemm/IntegerGemmIntrinsic.cpp b/js/src/intgemm/IntegerGemmIntrinsic.cpp index aebb0f5f02..0e79ccad36 100644 --- a/js/src/intgemm/IntegerGemmIntrinsic.cpp +++ b/js/src/intgemm/IntegerGemmIntrinsic.cpp @@ -22,10 +22,9 @@ #if defined(USE_AVX512BW) # if defined(USE_AVX512VNNI) -# define SUPPORTED_ARCHS \ - xsimd::arch_list, \ - xsimd::avx512bw, xsimd::avx2, \ - xsimd::ssse3, xsimd::sse2> +# define SUPPORTED_ARCHS \ + xsimd::arch_list, xsimd::avx512bw, \ + xsimd::avx2, xsimd::ssse3, xsimd::sse2> # elif defined(USE_AVXVNNI) # define SUPPORTED_ARCHS \ xsimd::arch_list #elif defined(USE_NEON) and defined(XSIMD_WITH_NEON64) -# define SUPPORTED_ARCHS xsimd::arch_list +# if defined(USE_NEON_I8MM) +# define SUPPORTED_ARCHS \ + xsimd::arch_list, xsimd::neon64> +# else +# define SUPPORTED_ARCHS xsimd::arch_list +# endif #else # error no supported architecture #endif diff --git a/js/src/intgemm/moz.build b/js/src/intgemm/moz.build index 9249938cbb..af4450b4e6 100644 --- a/js/src/intgemm/moz.build +++ b/js/src/intgemm/moz.build @@ -64,6 +64,12 @@ if CONFIG["TARGET_CPU"] == "aarch64": "NEON_FLAGS" ] + DEFINES["USE_NEON_I8MM"] = True + SOURCES += ["/third_party/gemmology/kernels/GemmologyEngineNeon64I8mm.cpp"] + SOURCES[ + "/third_party/gemmology/kernels/GemmologyEngineNeon64I8mm.cpp" + ].flags += CONFIG["NEON_I8MM_FLAGS"] + SOURCES += [ "IntegerGemmIntrinsic.cpp", ] -- cgit v1.2.3