Fix polar and roofline sizes in jobView

- add option for adaptable roofline sizing
This commit is contained in:
Christoph Kluge
2023-09-05 14:55:36 +02:00
parent c4a9fcc1ca
commit 827a85412e
4 changed files with 22 additions and 25 deletions

View File

@@ -131,7 +131,6 @@
lazyFetchMoreMetrics();
let plots = {},
roofWidth,
jobTags,
statsTable;
$: document.title = $initq.fetching
@@ -253,24 +252,20 @@
/>
</Col>
<Col>
<div bind:clientWidth={roofWidth}>
<Roofline
width={roofWidth - 10}
height={(roofWidth / 2) - 5}
renderTime={true}
cluster={clusters
.find((c) => c.name == $initq.data.job.cluster)
.subClusters.find(
(sc) => sc.name == $initq.data.job.subCluster
)}
data={
transformDataForRoofline (
$jobMetrics.data.jobMetrics.find((m) => m.name == "flops_any" && m.scope == "node").metric,
$jobMetrics.data.jobMetrics.find((m) => m.name == "mem_bw" && m.scope == "node").metric
)
}
/>
</div>
<Roofline
renderTime={true}
cluster={clusters
.find((c) => c.name == $initq.data.job.cluster)
.subClusters.find(
(sc) => sc.name == $initq.data.job.subCluster
)}
data={
transformDataForRoofline (
$jobMetrics.data.jobMetrics.find((m) => m.name == "flops_any" && m.scope == "node").metric,
$jobMetrics.data.jobMetrics.find((m) => m.name == "mem_bw" && m.scope == "node").metric
)
}
/>
</Col>
{:else}
<Col />