Todos Novo

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Entrar


Todos Novo Entrar

All gists matching topic NVIDIA

Mais recente criado
Menos recente criado
Mais recente atualizado
Menos recente atualizado
santiago's Avatar

santiago / are_games_running.sh

0 curtidas
0 bifurcações
1 arquivos
Última atividade 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
Próximo Anterior

Desenvolvido por Opengist ⋅ Load: 33ms⋅

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