From 6c02329860d49198ff6a20b8469fd50dd1aa2eab Mon Sep 17 00:00:00 2001 From: Torsten Hellwig Date: Mon, 15 Jan 2024 13:13:53 +0100 Subject: [PATCH] Fix dotprod detection This fixes the detection of dotprod capable CPUs. Previously it looked for the `dotprod` flag, but this does not exist (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm64/kernel/cpuinfo.c#n50). The correct flag that specifies the dotprod capability is the `asimddp` flag. fixes #4931 closes https://github.com/official-stockfish/Stockfish/pull/4991 No functional change --- scripts/get_native_properties.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_native_properties.sh b/scripts/get_native_properties.sh index ae23c3bb..fb124021 100755 --- a/scripts/get_native_properties.sh +++ b/scripts/get_native_properties.sh @@ -79,7 +79,7 @@ case $uname_s in 'aarch64') file_os='android' true_arch='armv8' - if check_flags 'dotprod'; then + if check_flags 'asimddp'; then true_arch="$true_arch-dotprod" fi ;;