From 390bc4c2232b1c7df43d6fc6fe83aaf29389d7ee Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Fri, 7 Oct 2022 15:01:14 +0200 Subject: [PATCH] Resize gauge card, hide scale on roofline, set colorDots to true - Scale display switchable by new option 'showTime' --- web/frontend/src/Status.root.svelte | 10 +++++----- web/frontend/src/plots/Roofline.svelte | 13 +++++++------ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/web/frontend/src/Status.root.svelte b/web/frontend/src/Status.root.svelte index 3a03433..0153b18 100644 --- a/web/frontend/src/Status.root.svelte +++ b/web/frontend/src/Status.root.svelte @@ -102,7 +102,7 @@ {#if $initq.data && $mainQuery.data} {#each $initq.data.clusters.find(c => c.name == cluster).subClusters as subCluster, i} - + SubCluster "{subCluster.name}" @@ -111,17 +111,17 @@ - + - + - +
Allocated Nodes
({allocatedNodes[subCluster.name]} Nodes / {subCluster.numberOfNodes} Total Nodes)
Flop Rate (Any)
({formatNumber(flopRate[subCluster.name])}Flops/s / {formatNumber((subCluster.flopRateSimd * subCluster.numberOfNodes))}Flops/s [Max])
MemBw Rate
({formatNumber(memBwRate[subCluster.name])}Byte/s / {formatNumber((subCluster.memoryBandwidth * subCluster.numberOfNodes))}Byte/s [Max])
@@ -132,7 +132,7 @@
{#key $mainQuery.data.nodeMetrics} data.subCluster == subCluster.name))} /> {/key}
diff --git a/web/frontend/src/plots/Roofline.svelte b/web/frontend/src/plots/Roofline.svelte index d385f0d..dbf0431 100644 --- a/web/frontend/src/plots/Roofline.svelte +++ b/web/frontend/src/plots/Roofline.svelte @@ -41,7 +41,7 @@ let a = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / l return { x: x1 + a * (x2 - x1), - y: y1 + a * (y2 - y1) + y: y1 + a * (y2 - y1) } } @@ -67,7 +67,7 @@ return 2 } - function render(ctx, data, cluster, width, height, colorDots, defaultMaxY) { + function render(ctx, data, cluster, width, height, colorDots, showTime, defaultMaxY) { if (width <= 0) return @@ -222,8 +222,8 @@ } ctx.stroke() - if (colorDots && data.x && data.y) { - // The Color Scale + if (colorDots && showTime && data.x && data.y) { + // The Color Scale For Time Information ctx.fillStyle = 'black' ctx.fillText('Time:', 17, height - 5) const start = paddingLeft + 5 @@ -305,6 +305,7 @@ export let height export let tiles = null export let colorDots = true + export let showTime = true export let data = null console.assert(data || tiles || (flopsAny && memBw), "you must provide flopsAny and memBw or tiles!") @@ -327,7 +328,7 @@ canvasElement.width = width canvasElement.height = height - render(ctx, data, cluster, width, height, colorDots, maxY) + render(ctx, data, cluster, width, height, colorDots, showTime, maxY) }) let timeoutId = null @@ -347,7 +348,7 @@ timeoutId = null canvasElement.width = width canvasElement.height = height - render(ctx, data, cluster, width, height, colorDots, maxY) + render(ctx, data, cluster, width, height, colorDots, showTime, maxY) }, 250) }