From 63bb3b5560f2727c60720ae6dec31ec47ac7b93c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 28 Dec 2024 09:53:22 +0100 Subject: [PATCH] Require avx2 https://github.com/alexbelgium/hassio-addons/issues/1685 --- birdnet-go/rootfs/etc/cont-init.d/99-run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/birdnet-go/rootfs/etc/cont-init.d/99-run.sh b/birdnet-go/rootfs/etc/cont-init.d/99-run.sh index 3a6b6d24873..c6df187b45f 100755 --- a/birdnet-go/rootfs/etc/cont-init.d/99-run.sh +++ b/birdnet-go/rootfs/etc/cont-init.d/99-run.sh @@ -2,6 +2,11 @@ # shellcheck shell=bash set -e +if [[ "$(uname -m)" = "x86_64" && ! grep -q "avx2" /proc/cpuinfo ]]; then + bashio::log.fatal "❌ Your CPU is x86_64 but doesn't support AVX2. BirdNET-Go requires Intel Haswell (2013) or newer CPU with AVX2 support." + exit 1 +fi + ################# # INITALISATION # #################