From 25c170bf85cd0676fd01237acdf40e1632d39598 Mon Sep 17 00:00:00 2001 From: Samuel Burnham <45365069+samuelburnham@users.noreply.github.com> Date: Mon, 6 Nov 2023 11:47:08 -0500 Subject: [PATCH] Print bench runner RAM in GB (#855) --- .github/workflows/merge-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/merge-tests.yml b/.github/workflows/merge-tests.yml index a800f7bef2..e317018abd 100644 --- a/.github/workflows/merge-tests.yml +++ b/.github/workflows/merge-tests.yml @@ -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