Skip to content

Commit

Permalink
Add cpu info for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
qiao-bo committed May 21, 2022
1 parent 0ec0638 commit 8b9ad63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/scripts/unix_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ else
# Log hardware info for the current CI-bot
# There's random CI failure caused by "import paddle" (Linux)
# Top suspect is an issue with MKL support for specific CPU
echo "CI-bot CPU info:"
if [[ $OSTYPE == "linux-"* ]]; then
lscpu | grep "Model name"
elif [[ $OSTYPE == "darwin"* ]]; then
sysctl -a | grep machdep.cpu
fi
fi

Expand Down

0 comments on commit 8b9ad63

Please sign in to comment.