Skip to content

Commit

Permalink
Merge pull request #342 from nv-rborkar/master
Browse files Browse the repository at this point in the history
Normalize Energy when perf. is normalized to RCP-mean
  • Loading branch information
hiwotadese authored Feb 15, 2024
2 parents 3870913 + 63d871f commit c7b23b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlperf_logging/result_summarizer/result_summarizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,12 @@ def _compute_strong_scaling_scores(desc, system_folder, usage, ruleset):
if has_power:
unsorted_scores = scores.copy()

scaling_factor = _get_scaling_factor(benchmark_folder)
if dropped_scores <= max_dropped_scores:
olympic_avg = _compute_olympic_average(
scores, dropped_scores, max_dropped_scores)
if olympic_avg is not None:
benchmark_scores[benchmark] = olympic_avg
scaling_factor = _get_scaling_factor(benchmark_folder)
benchmark_scores[benchmark] *= scaling_factor

if has_power and dropped_scores <= max_dropped_scores:
Expand All @@ -388,6 +388,7 @@ def _compute_strong_scaling_scores(desc, system_folder, usage, ruleset):
power_scores, index, dropped_scores, max_dropped_scores)
if olympic_avg is not None:
benchmark_power_scores[benchmark] = olympic_avg
benchmark_power_scores[benchmark] *= scaling_factor
_fill_empty_benchmark_scores(benchmark_scores, usage, ruleset)
if len(benchmark_power_scores) > 0:
_fill_empty_benchmark_scores(benchmark_power_scores, usage, ruleset)
Expand Down

0 comments on commit c7b23b3

Please sign in to comment.