From c7d7efff92fd1c4e3e7ec483680a946a105e605a Mon Sep 17 00:00:00 2001 From: hongtaozhang Date: Thu, 5 Dec 2024 13:44:39 -0800 Subject: [PATCH] Fix comments. --- examples/benchmarks/nvbandwidth.py | 2 +- superbench/benchmarks/micro_benchmarks/nvbandwidth.py | 2 -- tests/benchmarks/micro_benchmarks/test_nvbandwidth.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/benchmarks/nvbandwidth.py b/examples/benchmarks/nvbandwidth.py index c7d020e38..e89edfbfc 100644 --- a/examples/benchmarks/nvbandwidth.py +++ b/examples/benchmarks/nvbandwidth.py @@ -16,7 +16,7 @@ platform=Platform.CUDA, parameters=( '--buffer_size 128 ' - '--test_cases 0,1,19,20 ' + '--test_cases 0 1 19 20 ' '--skip_verification ' '--disable_affinity ' '--use_mean ' diff --git a/superbench/benchmarks/micro_benchmarks/nvbandwidth.py b/superbench/benchmarks/micro_benchmarks/nvbandwidth.py index 1f7fa9544..110966b86 100644 --- a/superbench/benchmarks/micro_benchmarks/nvbandwidth.py +++ b/superbench/benchmarks/micro_benchmarks/nvbandwidth.py @@ -159,7 +159,6 @@ def _process_raw_line(self, line, parse_status): if parse_status['test_name'] and parse_status['benchmark_type'] and matrix_row_pattern.match(line): row_data = line.split() row_index = row_data[0] - for col_index, value in enumerate(row_data[1:], start=1): # Skip 'N/A' values if value == 'N/A': @@ -170,7 +169,6 @@ def _process_raw_line(self, line, parse_status): benchmark_type = parse_status['benchmark_type'] metric_name = f'{test_name}_cpu{row_index}_gpu{col_header}_{benchmark_type}' parse_status['results'][metric_name] = float(value) - return # Parse summary results diff --git a/tests/benchmarks/micro_benchmarks/test_nvbandwidth.py b/tests/benchmarks/micro_benchmarks/test_nvbandwidth.py index f32f0f50d..630e77179 100644 --- a/tests/benchmarks/micro_benchmarks/test_nvbandwidth.py +++ b/tests/benchmarks/micro_benchmarks/test_nvbandwidth.py @@ -34,7 +34,7 @@ def test_nvbandwidth_preprocess(self): # Test preprocess with specified parameters parameters = ( '--buffer_size 256 ' - '--test_cases 0 1 2 19 20 ' + '--test_cases 0 1 2 19 20 ' '--skip_verification ' '--disable_affinity ' '--use_mean '