Repository navigation
FRG-99: Read the GPU temperature - #90
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…details Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FRG-99: TeczoForge reads the GPU temperature, shows it, and remembers how hot each job made the GPU. No pausing yet (that is FRG-100).
backend/src/gpuTemp.ts: every 5 s,execFilerunsnvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounitswith a 3 s timeout (path fromNVIDIA_SMI_PATH, defaultnvidia-smi). A failure makes it "unknown" and is logged once. A value older than 15 s counts as unknown. It only reads: no GPU setting is changed.GET /api/gpuanswers{ temperatureC, readAt, known }.maxGpuTempC), saved when it finishes. A job shorter than one reading gets the reading at its end. A board card that goes back to Ready forgets it, so its next run measures again.backend/.env.examplelistsNVIDIA_SMI_PATH.Tested:
/api/gpu= 42.6 °C whilenvidia-smisaid 42.64 °C. With a wrong path: one warning, no crash, "unknown". Typecheck passes in backend and frontend. No new dependency.🤖 Generated with Claude Code