Skip to content

Commit

Permalink
Print bench runner RAM in GB (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham authored Nov 6, 2023
1 parent 57a50c9 commit 25c170b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/merge-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ jobs:
GPU_NAME=$(nvidia-smi --query-gpu=gpu_name --format=csv,noheader,nounits | tail -n1)
# Get CPU model
CPU_MODEL=$(grep '^model name' /proc/cpuinfo | head -1 | awk -F ': ' '{ print $2 }')
# Get total RAM
TOTAL_RAM=$(grep MemTotal /proc/meminfo | awk '{print $2 $3}')
# Get total RAM in GB
TOTAL_RAM=$(grep MemTotal /proc/meminfo | awk '{$2=$2/(1024^2); print $2, "GB RAM";}')
# Use conditionals to ensure that only non-empty variables are inserted
[[ ! -z "$GPU_NAME" ]] && sed -i "/^\"\"\"$/i $GPU_NAME" tables.toml
Expand Down

0 comments on commit 25c170b

Please sign in to comment.