mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 05:19:05 +01:00
Switch from randomly chosen value to known value
- Case: Requesting Acc Metrics for running jobs
This commit is contained in:
parent
2b9afe8f1d
commit
d49366d19c
@ -58,11 +58,15 @@ const (
|
|||||||
var metricScopeGranularity map[MetricScope]int = map[MetricScope]int{
|
var metricScopeGranularity map[MetricScope]int = map[MetricScope]int{
|
||||||
MetricScopeNode: 10,
|
MetricScopeNode: 10,
|
||||||
MetricScopeSocket: 5,
|
MetricScopeSocket: 5,
|
||||||
MetricScopeMemoryDomain: 3,
|
MetricScopeMemoryDomain: 4,
|
||||||
MetricScopeCore: 2,
|
MetricScopeCore: 3,
|
||||||
MetricScopeHWThread: 1,
|
MetricScopeHWThread: 2,
|
||||||
|
/* Special-Case Accelerator
|
||||||
MetricScopeAccelerator: 5, // Special/Randomly choosen
|
* -> No conversion possible if native scope is HWTHREAD
|
||||||
|
* -> Therefore needs to be less than HWTREAD, else max() would return unhandled case
|
||||||
|
* -> If nativeScope is accelerator, accelerator metrics return correctly
|
||||||
|
*/
|
||||||
|
MetricScopeAccelerator: 1,
|
||||||
|
|
||||||
MetricScopeInvalid: -1,
|
MetricScopeInvalid: -1,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user