Switch from randomly chosen value to known value

- Case: Requesting Acc Metrics for running jobs
This commit is contained in:
Christoph Kluge 2023-06-15 10:10:49 +02:00
parent 2b9afe8f1d
commit d49366d19c

View File

@ -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,
} }