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>
donate.js
CHANGED
|
@@ -134,7 +134,10 @@ async function render() {
|
|
| 134 |
const st = await donor.status(), m = await donor.measure();
|
| 135 |
const label = { sharing: "🟢 Lending", paused: "⏸️ Paused", waiting: "⏳ Pledged", retrying: "🔄 Reconnecting", stopped: "⛔ Stopped", off: "Off" }[st.state] || st.state;
|
| 136 |
$("#dn-state").textContent = st.on ? `${label}${st.note ? " · " + st.note : ""}` : "Not donating.";
|
| 137 |
-
const
|
|
|
|
|
|
|
|
|
|
| 138 |
$("#dn-measure").replaceChildren(
|
| 139 |
row("Threads", m.threads ? `${m.threads} of ${m.cores} cores` : "engine not loaded"),
|
| 140 |
row("Engine memory", m.memoryMB ? `${m.memoryMB} MB${m.deviceMemoryGB ? ` of ~${m.deviceMemoryGB} GB` : ""}` : "—"),
|
|
|
|
| 134 |
const st = await donor.status(), m = await donor.measure();
|
| 135 |
const label = { sharing: "🟢 Lending", paused: "⏸️ Paused", waiting: "⏳ Pledged", retrying: "🔄 Reconnecting", stopped: "⛔ Stopped", off: "Off" }[st.state] || st.state;
|
| 136 |
$("#dn-state").textContent = st.on ? `${label}${st.note ? " · " + st.note : ""}` : "Not donating.";
|
| 137 |
+
const g = m.gpu, pc = (x) => (x == null ? "?" : `${Math.round(100 * x)}%`);
|
| 138 |
+
// bankML's limiter: limit = the cap on the card's time, busy = its measured busy fraction, share = the rows it computes
|
| 139 |
+
const 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` : ""}`
|
| 140 |
+
: (m.gpuWanted ? "asked for, but no verified WebGPU card here" : "off");
|
| 141 |
$("#dn-measure").replaceChildren(
|
| 142 |
row("Threads", m.threads ? `${m.threads} of ${m.cores} cores` : "engine not loaded"),
|
| 143 |
row("Engine memory", m.memoryMB ? `${m.memoryMB} MB${m.deviceMemoryGB ? ` of ~${m.deviceMemoryGB} GB` : ""}` : "—"),
|