Skip to content

Commit

Permalink
Update cpu_feature.sh with slightly more descriptive names
Browse files Browse the repository at this point in the history
  • Loading branch information
XapaJIaMnu authored Sep 13, 2023
1 parent 81ed8b9 commit 5d7d6bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/cpu_feature.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ "$machine" = "Linux" ]; then
elif grep -q ssse3 /proc/cpuinfo; then
echo "ssse3"
else
echo "Really really old system"
echo "old_or_non_x86"
fi
elif [ "$machine" = "Mac" ]; then
if /usr/sbin/sysctl -n machdep.cpu.features machdep.cpu.leaf7_features | grep -q AVX512; then
Expand All @@ -32,7 +32,7 @@ elif [ "$machine" = "Mac" ]; then
elif /usr/sbin/sysctl -n machdep.cpu.features machdep.cpu.leaf7_features | grep -q SSSE3; then
echo "ssse3"
else
echo "Really really old machine."
echo "old_or_non_x86"
fi
else
echo "Unsupported platform"
Expand Down

0 comments on commit 5d7d6bd

Please sign in to comment.