Donation panel: label the GPU measurement as bankML's limiter reports it
Browse filesShows the cap on the card's time, its measured busy fraction, the share of each layer it computes, and products run on the card. Before, the panel printed the row share as 'share 0.42', which read as card time.
Verified on an AMD Vega (gcn-5) through Vulkan WebGPU: capped at 25%, busy 25%, computes 34% of each layer.
Co-Authored-By: Professor Codephreak <codephreak@pythai.net>
133 unmodified lines134135136137138139140133 unmodified linesconst st = await donor.status(), m = await donor.measure();const label = { sharing: "🟢 Lending", paused: "⏸️ Paused", waiting: "⏳ Pledged", retrying: "🔄 Reconnecting", stopped: "⛔ Stopped", off: "Off" }[st.state] || st.state;$("#dn-state").textContent = st.on ? `${label}${st.note ? " · " + st.note : ""}` : "Not donating.";const gpu = m.gpu ? `${m.gpu.card || m.gpu.name || "card"} · share ${m.gpu.share ?? "?"}` : (m.gpuWanted ? "asked for, but no verified WebGPU card here" : "off");$("#dn-measure").replaceChildren(row("Threads", m.threads ? `${m.threads} of ${m.cores} cores` : "engine not loaded"),row("Engine memory", m.memoryMB ? `${m.memoryMB} MB${m.deviceMemoryGB ? ` of ~${m.deviceMemoryGB} GB` : ""}` : "—"),133 unmodified lines134135136137138139140141142143133 unmodified linesconst st = await donor.status(), m = await donor.measure();const label = { sharing: "🟢 Lending", paused: "⏸️ Paused", waiting: "⏳ Pledged", retrying: "🔄 Reconnecting", stopped: "⛔ Stopped", off: "Off" }[st.state] || st.state;$("#dn-state").textContent = st.on ? `${label}${st.note ? " · " + st.note : ""}` : "Not donating.";const g = m.gpu, pc = (x) => (x == null ? "?" : `${Math.round(100 * x)}%`);// bankML's limiter: limit = the cap on the card's time, busy = its measured busy fraction, share = the rows it computesconst gpu = g ? `${g.card || g.name || "card"} · capped at ${pc(g.limit)} of its time, busy ${pc(g.busy)} · computes ${pc(g.share)} of each layer${g.products_on_card != null ? ` · ${g.products_on_card} products on the card` : ""}`: (m.gpuWanted ? "asked for, but no verified WebGPU card here" : "off");$("#dn-measure").replaceChildren(row("Threads", m.threads ? `${m.threads} of ${m.cores} cores` : "engine not loaded"),row("Engine memory", m.memoryMB ? `${m.memoryMB} MB${m.deviceMemoryGB ? ` of ~${m.deviceMemoryGB} GB` : ""}` : "—"),
donate.js+4-1