wshobson/agents / plugins/dgx-spark-ops/skills/spark-memory-thermal-ops
spark-memory-thermal-ops
VerifiedManage unified memory and thermals during long-running ML jobs on NVIDIA DGX Spark. Use when planning memory headroom for a training run on GB10, when a job OOMs on unified memory, or when monitoring temperature and power during multi-hour training.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.8 KB |
| assets/thermal-sample.shexecutable | script | 1017 B |
| references/uma-accounting.md | markdown | 4.3 KB |
assets/thermal-sample.sh
View on GitHub#!/usr/bin/env bash
# Background thermal/power sampler for a long training run.
# Output contract: CSV, one line per sample, matching
# `nvidia-smi --query-gpu` field order — pipe-compatible with
# the training log for later correlation by timestamp.
# Usage: bash thermal-sample.sh [interval_seconds] [logfile]
set -uo pipefail
command -v nvidia-smi >/dev/null || { echo "nvidia-smi not found" >&2; exit 1; }
INTERVAL="${1:-30}"
LOGFILE="${2:-thermal.log}"
PIDFILE="${LOGFILE}.pid"
if [ -f "$PIDFILE" ] && kill -0 "$(cat "$PIDFILE")" 2>/dev/null; then
echo "Stopping existing sampler (pid $(cat "$PIDFILE"))"
kill "$(cat "$PIDFILE")"
fi
echo "timestamp,temperature.gpu,power.draw" > "$LOGFILE"
nvidia-smi --query-gpu=timestamp,temperature.gpu,power.draw \
--format=csv,noheader -l "$INTERVAL" >> "$LOGFILE" &
PID=$!
echo "$PID" > "$PIDFILE"
echo "Sampling every ${INTERVAL}s into ${LOGFILE} (pid $PID)"
echo "A sustained ~100W reading is the platform cap, not a bug — see SKILL.md Thermal Monitoring."
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |