Todos Nuevo

user:thomas gists creados por el usuario

title:mygist gists con el título indicado

filename:myfile.txt gists que contienen archivos con el nombre indicado

extension:yml gists que contienen archivos con la extensión indicada

language:go gists que contienen archivos con el lenguaje indicado

topic:homelab gists with given topic

Iniciar sesión


Todos Nuevo Iniciar sesión

All gists matching topic gaming

Recientemente creado
Menos reciente creado
Recientemente actualizado
Menos reciente actualizado
santiago's Avatar

santiago / are_games_running.sh

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1767277683
Check wattage of NVIDIA GPU returns 0 if above threshold of 30W
Linux NVIDIA gaming
1 #!/usr/bin/env bash
2 set -euo pipefail
3
4 POWER_LIMIT=30
5
6 power="$(nvidia-smi --query-gpu=power.draw --format=csv,noheader,nounits 2>/dev/null | head -n1)"
7
8 if [[ -z "$power" ]]; then
9 echo "OOPS: cannot read GPU power - check nvidia GPU driver"
10 exit 1
Siguiente Anterior

Desarrollado por Opengist ⋅ Load: 32ms⋅

Español
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文