Skip to content

Commit

Permalink
feat: report error on unspported platform
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyoucao577 committed Aug 1, 2024
1 parent 96763a9 commit 17be2f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions agents/scripts/install_deps_and_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ main() {
OS=$1
CPU=$2

echo -e "#include <stdio.h>\n#include <immintrin.h>\nint main() { __m256d a = _mm256_set_pd(1.0, 2.0, 3.0, 4.0); return 0; }" > /tmp/test.c
if gcc -mavx2 /tmp/test.c -o /tmp/test && ! /tmp/test; then
echo "FATAL: unsupported platform."
echo " Please UNCHECK the 'Use Rosetta for x86_64/amd64 emulation on Apple Silicon' Docker Desktop setting if you're running on mac."

exit 1
fi

if [[ ! -f $APP_HOME/manifest.json ]]; then
echo "FATAL: manifest.json is required."
exit 1
Expand Down

0 comments on commit 17be2f4

Please sign in to comment.