fix: add acc scope to job query if acc >= 1

This commit is contained in:
Christoph Kluge 2024-04-03 14:15:04 +02:00
parent fc260b2291
commit aafa29db8b

View File

@ -24,7 +24,11 @@
export let showFootprint;
let { id } = job;
let scopes = [job.numNodes == 1 ? "core" : "node"];
let scopes = job.numNodes == 1
? job.numAcc >= 1
? ["core", "accelerator"]
: ["core"]
: ["node"];
function distinct(value, index, array) {
return array.indexOf(value) === index;
@ -83,7 +87,11 @@
scopes = ["node"];
} else {
queryMetrics = [...metrics];
scopes = [job.numNodes == 1 ? "core" : "node"];
scopes = job.numNodes == 1
? job.numAcc >= 1
? ["core", "accelerator"]
: ["core"]
: ["node"];
}
export function refresh() {