Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
naive test for AVX support #7
Browse files Browse the repository at this point in the history
  • Loading branch information
pkejval committed Sep 25, 2023
1 parent eba2051 commit e0c9243
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ function run_uld() {
echo "$(date "+%D %T")" - Done downloading "$URL"
}

function run_flaresolverr()
{
function run_flaresolverr() {
echo ""
echo Starting FlareSolverr and waiting to its startup
echo ""
Expand Down Expand Up @@ -109,6 +108,12 @@ function run_flaresolverr()
done
}

function test_avx() {
lscpu | grep avx
[[ $? -ne 0 ]] && echo "******* ERROR ******" && echo "Your CPU doesn't support AVX instructions needed for tensorflow to run! Sorry your CPU cannot run this container!" && echo "******* ERROR ******" && exit 5
}

test_avx
run_flaresolverr

if [[ -z "$1" ]] && [[ -f "/downloads/download.txt" ]]; then
Expand Down

0 comments on commit e0c9243

Please sign in to comment.