This commit is contained in:
Dominik Agres
2025-04-06 18:43:23 +02:00
parent 6427510f0d
commit d453460c01
7 changed files with 408 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
if [ -f /sys/module/amdgpu/drivers/pci:amdgpu/0000:28:00.0/gpu_busy_percent ]; then
usage=$(awk '{print $1}' /sys/module/amdgpu/drivers/pci:amdgpu/0000:28:00.0/gpu_busy_percent)
echo "${usage}%"
else
echo "N/A"
fi