mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-25 12:59:06 +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{
|
||||
MetricScopeNode: 10,
|
||||
MetricScopeSocket: 5,
|
||||
MetricScopeMemoryDomain: 3,
|
||||
MetricScopeCore: 2,
|
||||
MetricScopeHWThread: 1,
|
||||
|
||||
MetricScopeAccelerator: 5, // Special/Randomly choosen
|
||||
MetricScopeMemoryDomain: 4,
|
||||
MetricScopeCore: 3,
|
||||
MetricScopeHWThread: 2,
|
||||
/* Special-Case Accelerator
|
||||
* -> 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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user