Skip to content

Commit

Permalink
Add GPUUtilization as expect metric
Browse files Browse the repository at this point in the history
  • Loading branch information
jakki-amd committed Dec 20, 2024
1 parent 1deabff commit e40e6c4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1351,8 +1351,7 @@ public void testMetricManager() throws JsonParseException, InterruptedException
Map<String, Map<String, String>> expectedMetrics = new HashMap<>();
expectedMetrics.put("GPUMemoryUtilization", Map.of(UNIT, "Percent", LEVEL, HOST));
expectedMetrics.put("GPUMemoryUsed", Map.of(UNIT, "Megabytes", LEVEL, HOST));
// torch.mps does not allow to calculate GPUUtilization, see ts/metrics/system_metrics.py
// expectedMetrics.put("GPUUtilization", Map.of(UNIT, "Percent", LEVEL, HOST));
expectedMetrics.put("GPUUtilization", Map.of(UNIT, "Percent", LEVEL, HOST));
expectedMetrics.put("CPUUtilization", Map.of(UNIT, "Percent", LEVEL, HOST));
expectedMetrics.put("MemoryUsed", Map.of(UNIT, "Megabytes", LEVEL, HOST));
expectedMetrics.put("MemoryAvailable", Map.of(UNIT, "Megabytes", LEVEL, HOST));
Expand Down

0 comments on commit e40e6c4

Please sign in to comment.