Skip to content

Commit

Permalink
fix: add missing parameters for correct shared metric thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
spacehamster87 committed Dec 20, 2024
1 parent 7c9182e commit bce536b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/frontend/src/generic/plots/MetricPlot.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}
// removed arg "subcluster": input metricconfig and topology now directly derived from subcluster
function findThresholds(
function findJobAggregationThresholds(
subClusterTopology,
metricConfig,
scope,
Expand All @@ -60,7 +60,7 @@
) {
if (!subClusterTopology || !metricConfig || !scope) {
console.warn("Argument missing for findThresholds!");
console.warn("Argument missing for findJobAggregationThresholds!");
return null;
}
Expand Down Expand Up @@ -96,7 +96,7 @@
else if (scope == "hwthread") divisor = subClusterTopology.core.length; // alt. name for core
else if (scope == "accelerator") divisor = subClusterTopology.accelerators.length;
else {
console.log('Unknown scope, return default thresholds ', scope)
console.log('Unknown scope, return default aggregation thresholds ', scope)
divisor = 1;
}
Expand Down Expand Up @@ -157,7 +157,7 @@
caution: "rgba(255, 128, 0, 0.3)",
alert: "rgba(255, 0, 0, 0.3)",
};
const thresholds = findThresholds(
const thresholds = findJobAggregationThresholds(
subClusterTopology,
metricConfig,
scope,
Expand Down
4 changes: 4 additions & 0 deletions web/frontend/src/job/Metric.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@
timestep={data.timestep}
scope={selectedScope}
metric={metricName}
numaccs={job.numAcc}
numhwthreads={job.numHWThreads}
{series}
{isShared}
{zoomState}
Expand All @@ -226,6 +228,8 @@
timestep={data.timestep}
scope={selectedScope}
metric={metricName}
numaccs={job.numAcc}
numhwthreads={job.numHWThreads}
{series}
{isShared}
{zoomState}
Expand Down

0 comments on commit bce536b

Please sign in to comment.