Skip to content

Instantly share code, notes, and snippets.

View AndiH's full-sized avatar
🤖
q|^_^|p

Andreas Herten AndiH

🤖
q|^_^|p
View GitHub Profile
@AndiH
AndiH / .gitignore
Last active April 19, 2021 06:41
Impf Extraction
*.pdf
@AndiH
AndiH / measure.py
Created August 30, 2023 08:44
GPU Power with Context
import os
import subprocess
import io
import time
import pandas as pd
class GetPower(object):
def __enter__(self):
cmd = "nvidia-smi --query-gpu=index,timestamp,name,power.draw --format=csv --loop-ms=5"