Skip to content

Commit

Permalink
Record CPU and available memory
Browse files Browse the repository at this point in the history
  • Loading branch information
gfiumara committed Apr 5, 2023
1 parent 8d82191 commit db33ab8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions elft_1_x/validation/validate
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,21 @@ compile()
echo
done < <(find "${lib_dir}" -type f -name "lib*")
echo -n "CPU Model = "
if [ -e /proc/cpuinfo ]; then
grep "model name" /proc/cpuinfo | sort | uniq | \
cut -f2 -d ':' | xargs
else
echo "NA"
fi
echo -n "MemTotal = "
if [ -e /proc/meminfo ]; then
grep "MemTotal" /proc/meminfo | cut -f2 -d ':' | xargs
else
echo "NA"
fi
echo "Validation properties:"
echo "Validation Version = ${validation_version}"
echo "Random Seed = $1"
Expand Down

0 comments on commit db33ab8

Please sign in to comment.