From 72e3e236de2962861558919041b45ece48cbfb34 Mon Sep 17 00:00:00 2001 From: finger42 <67188554+finger42@users.noreply.github.com> Date: Sun, 23 Jul 2023 21:27:55 +0200 Subject: [PATCH] Added CPU information to entrypoint.sh (#794) --- entrypoint.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index b787649c..30108a69 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -16,6 +16,25 @@ else echo "see the documentation at: https://localai.io/basics/build/index.html" echo "Note: See also https://github.com/go-skynet/LocalAI/issues/288" echo "@@@@@" + echo "CPU info:" + grep -e "model\sname" /proc/cpuinfo | head -1 + grep -e "flags" /proc/cpuinfo | head -1 + if grep -q -e "\savx\s" /proc/cpuinfo ; then + echo "CPU: AVX found OK" + else + echo "CPU: no AVX found" + fi + if grep -q -e "\savx2\s" /proc/cpuinfo ; then + echo "CPU: AVX2 found OK" + else + echo "CPU: no AVX2 found" + fi + if grep -q -e "\savx512" /proc/cpuinfo ; then + echo "CPU: AVX512 found OK" + else + echo "CPU: no AVX512 found" + fi + echo "@@@@@" fi ./local-ai "$@"