diff --git a/superbench/benchmarks/micro_benchmarks/hipblaslt_function.py b/superbench/benchmarks/micro_benchmarks/hipblaslt_function.py index 6c708b3c2..2ace93fca 100644 --- a/superbench/benchmarks/micro_benchmarks/hipblaslt_function.py +++ b/superbench/benchmarks/micro_benchmarks/hipblaslt_function.py @@ -3,13 +3,24 @@ """Module of the hipBlasLt GEMM benchmark.""" +import math import os import re +import shlex +from typing import Dict, List, Optional -from superbench.common.utils import logger +from superbench.common.utils import LazyImport, logger, run_command from superbench.benchmarks import BenchmarkRegistry, Platform, ReturnCode from superbench.benchmarks.micro_benchmarks import BlasLtBaseBenchmark +torch = LazyImport('torch') + +_MXFP4_ARGS = ( + '--a_type f4_r --b_type f4_r --c_type f32_r --d_type f32_r --compute_type f32_r' + ' --scaleA 3 --scaleB 3 --alpha 1 --beta 0 --algo_method heuristic --requested_solution 1' + ' --verify_strict --use_gpu_timer --print_kernel_info' +) + class HipBlasLtBenchmark(BlasLtBaseBenchmark): """The hipBlasLt GEMM benchmark class.""" @@ -23,12 +34,13 @@ def __init__(self, name, parameters=''): super().__init__(name, parameters) self._bin_name = 'hipblaslt-bench' - self._in_types = ['fp32', 'fp16', 'bf16', 'fp8'] + self._in_types = ['fp32', 'fp16', 'bf16', 'fp8', 'mxfp4'] self._in_type_map = { 'fp16': '--a_type f16_r --b_type f16_r --c_type f16_r --d_type f16_r --compute_type f32_r', 'fp32': '--a_type f32_r --b_type f32_r --c_type f32_r --d_type f32_r --compute_type f32_r', 'bf16': '--a_type bf16_r --b_type bf16_r --c_type bf16_r --d_type bf16_r --compute_type f32_r', 'fp8': '--a_type f8_r --b_type f8_r --c_type f8_r --d_type f8_r --compute_type f32_r', + 'mxfp4': _MXFP4_ARGS, } def add_parser_arguments(self): @@ -47,7 +59,7 @@ def add_parser_arguments(self): '--initialization', type=str, default='rand_int', - choices=['trig_float', 'rand_int', 'hpl'], + choices=['trig_float', 'rand_int', 'hpl', 'maf2_0'], required=False, help='Initialize matrix data.', ) @@ -68,6 +80,64 @@ def add_parser_arguments(self): help='Transpose matrix B.', ) + def _mxfp4_argument_error(self) -> Optional[str]: + """Return the first MXFP4 argument error, or None for a supported case.""" + args = self._args + checks = ( + ( + any(t != 'mxfp4' for t in args.in_types), + 'MXFP4 and maf2_0 require a dedicated mxfp4 benchmark instance.', + ), + ((args.transA, args.transB) != ('T', 'N'), 'MXFP4 currently requires --transA T --transB N.'), + ( + args.initialization not in ('hpl', 'trig_float', 'maf2_0'), + 'MXFP4 requires --initialization hpl, trig_float or maf2_0.', + ), + ( + args.num_warmup < 0 or args.num_steps < 1, + 'MXFP4 requires non-negative warmup and positive measurement iterations.', + ), + ( + any(b != 0 or min(m, n, k) <= 0 or k % 32 != 0 for m, n, k, b, _ in self._shapes_to_run), + 'MXFP4 requires --batch 0, positive dimensions, and K divisible by 32.', + ), + ) + return next((message for failed, message in checks if failed), None) + + def _check_mxfp4_support(self) -> bool: + """Check the selected ROCm device and the client's block-scaling options.""" + try: + arch = torch.cuda.get_device_properties(0).gcnArchName.split(':')[0] + except (AssertionError, AttributeError, ImportError, RuntimeError) as e: + self._result.set_return_code(ReturnCode.MICROBENCHMARK_DEVICE_GETTING_FAILURE) + logger.error('Cannot identify the MXFP4 device - benchmark: {}, message: {}.'.format(self._name, str(e))) + return False + + if arch != 'gfx1250': + self._result.set_return_code(ReturnCode.MICROBENCHMARK_UNSUPPORTED_ARCHITECTURE) + logger.error(f'MI455X MXFP4 requires gfx1250 - benchmark: {self._name}, architecture: {arch}.') + return False + + output = run_command(f'{shlex.quote(self.__bin_path)} --help', quiet=True) + b32e8 = r'3[ \t]*=[ \t]*(?i:B32E8)' + required_values = (('--scaleA', b32e8), ('--scaleB', b32e8), ('--initialization', self._args.initialization)) + missing = [ + option for option, value in required_values + if not re.search(rf'^[ \t]*{option}\b.*\b{value}\b', output.stdout, re.MULTILINE) + ] + if output.returncode != 0 or missing or self._args.log_raw_data: + self._result.add_raw_data('mxfp4_client_help', output.stdout, self._args.log_raw_data) + if output.returncode != 0: + self._result.set_return_code(ReturnCode.MICROBENCHMARK_EXECUTION_FAILURE) + logger.error(f'Cannot query MXFP4 client options - benchmark: {self._name}, output: {output.stdout}.') + return False + if missing: + self._result.set_return_code(ReturnCode.INVALID_ARGUMENT) + logger.error(f'Client lacks B32E8 or {self._args.initialization} for {missing} - benchmark: {self._name}.') + return False + self._result.add_raw_data('mxfp4_gpu_arch', arch, self._args.log_raw_data) + return True + def _preprocess(self): """Preprocess/preparation operations before the benchmarking. @@ -81,6 +151,15 @@ def _preprocess(self): self._commands = [] self._precision_in_commands = [] + if 'mxfp4' in self._args.in_types or self._args.initialization == 'maf2_0': + error = self._mxfp4_argument_error() + if error: + self._result.set_return_code(ReturnCode.INVALID_ARGUMENT) + logger.error('Invalid MXFP4 arguments - benchmark: %s, message: %s', self._name, error) + return False + if not self._check_mxfp4_support(): + return False + for (_m, _n, _k, _b, _in_type) in self._shapes_to_run: command = f'{self.__bin_path} -m {_m} -n {_n} -k {_k} -j {self._args.num_warmup}' + \ f' -i {self._args.num_steps} {self._in_type_map[_in_type]}' + \ @@ -93,6 +172,44 @@ def _preprocess(self): return True + def _record_mxfp4_result( + self, cmd_idx: int, columns: Dict[str, int], fields: List[str], trailer: List[str], header_count: int + ) -> None: + """Record MXFP4 metrics only after the single result row, kernel, timing and verification match.""" + if header_count != 1 or len(columns) != len(fields): + raise ValueError('MXFP4 requires one result row with unique columns.') + if not any(re.match(r'^\s*--kernel name:\s*\S', line) for line in trailer): + raise ValueError('MXFP4 requires the client to report the selected kernel.') + row = {col: fields[i].strip() for col, i in columns.items()} + m, n, k, _, _ = self._shapes_to_run[cmd_idx] + for column, value in ( + ('transA', 'T'), ('transB', 'N'), ('batch_count', '1'), ('m', str(m)), ('n', str(n)), ('k', str(k)), + ('a_type', 'f4_r'), ('b_type', 'f4_r'), ('c_type', 'f32_r'), ('d_type', 'f32_r'), ('compute_type', 'f32_r'), + ('scaleA', '3'), ('scaleB', '3') + ): + if row.get(column) != value: + raise ValueError(f'MXFP4 column {column} must be {value}, got {row.get(column)}.') + + gflops, latency = float(row['hipblaslt-Gflops']), float(row['us']) + if not (math.isfinite(gflops) and gflops > 0 and math.isfinite(latency) and latency > 0): + raise ValueError('MXFP4 throughput and latency must be finite and positive.') + if not math.isclose(gflops, 2 * m * n * k / latency / 1000, rel_tol=0.01): + raise ValueError('MXFP4 throughput does not match 2*M*N*K and the reported latency.') + + # Keep the wrapper's conservative FP32-output bound in addition to the client's strict verification. + norm_error = float(row['norm_error']) + if not ( + 0 <= norm_error < 1e-5 + and all(math.isfinite(v) and v >= 0 for v in (float(row['atol']), float(row['rtol']))) + ): + raise ValueError('MXFP4 verification error columns must be finite and within bounds.') + + metric = f'mxfp4_{row["batch_count"]}_{m}_{n}_{k}' + self._result.add_result(f'{metric}_time', latency) + self._result.add_result(f'{metric}_norm_error', norm_error) + self._result.add_result(f'{metric}_correctness', 1) + self._result.add_result(f'{metric}_flops', gflops / 1000) + def _process_raw_result(self, cmd_idx, raw_output): """Function to parse raw results and save the summarized results. @@ -109,16 +226,10 @@ def _process_raw_result(self, cmd_idx, raw_output): try: lines = raw_output.splitlines() - index = None - - # Find the header line containing 'hipblaslt-Gflops' - for i, line in enumerate(lines): - if 'hipblaslt-Gflops' in line: - index = i - break - - if index is None: + headers = [i for i, line in enumerate(lines) if 'hipblaslt-Gflops' in line] + if not headers: raise ValueError('Line with "hipblaslt-Gflops" not found in the log.') + index = headers[0] # Parse the header and resolve every key column (batch_count/m/n/k/hipblaslt-Gflops) # by name. This keeps the parser forward-compatible across known and future @@ -156,6 +267,10 @@ def _process_raw_result(self, cmd_idx, raw_output): f'but data has {len(fields)} columns' ) + if self._precision_in_commands[cmd_idx] == 'mxfp4': + self._record_mxfp4_result(cmd_idx, col_idx_by_name, fields, lines[index + 2:], len(headers)) + return True + # Resolve every key value by header name and strip whitespace from each, so # any padding around CSV values does not bleed into the metric key. batch_count = fields[col_idx_by_name['batch_count']].strip() @@ -168,7 +283,7 @@ def _process_raw_result(self, cmd_idx, raw_output): f'{self._precision_in_commands[cmd_idx]}_{batch_count}_{m_val}_{n_val}_{k_val}_flops', float(fields[gflops_col]) / 1000 ) - except BaseException as e: + except (KeyError, ValueError) as e: self._result.set_return_code(ReturnCode.MICROBENCHMARK_RESULT_PARSING_FAILURE) logger.error( 'The result format is invalid - round: {}, benchmark: {}, raw output: {}, message: {}.'.format( diff --git a/tests/benchmarks/micro_benchmarks/test_hipblaslt_function.py b/tests/benchmarks/micro_benchmarks/test_hipblaslt_function.py index 484790755..a0744b108 100644 --- a/tests/benchmarks/micro_benchmarks/test_hipblaslt_function.py +++ b/tests/benchmarks/micro_benchmarks/test_hipblaslt_function.py @@ -3,13 +3,22 @@ """Tests for hipblaslt-bench benchmark.""" +import shlex import unittest from types import SimpleNamespace +from unittest.mock import Mock, patch from tests.helper.testcase import BenchmarkTestCase from superbench.benchmarks import BenchmarkRegistry, BenchmarkType, ReturnCode, Platform +from superbench.benchmarks.micro_benchmarks import hipblaslt_function from superbench.benchmarks.result import BenchmarkResult +_MXFP4_PARAMETERS = '--in_types mxfp4 --shapes 64,128,256 --transA T --transB N --initialization maf2_0' +_MXFP4_HELP_OPTIONS = ( + '--scaleA 0 = None, 3 = B32E8, 4 = B16E8', '--scaleB 0 = None, 3 = B32E8, 4 = B16E8', + '--initialization hpl, trig_float, maf2_0' +) + class HipblasLtBenchmarkTestCase(BenchmarkTestCase, unittest.TestCase): """Class for hipblaslt-bench benchmark test cases.""" @@ -26,6 +35,67 @@ def get_benchmark(self): (benchmark_cls, _) = BenchmarkRegistry._BenchmarkRegistry__select_benchmark(self.benchmark_name, Platform.ROCM) return benchmark_cls(self.benchmark_name, parameters='') + def preprocess_mxfp4( + self, parameters=_MXFP4_PARAMETERS, arch='gfx1250:sramecc+:xnack-', help_result=None, device_error=None + ): + """Preprocess with synthetic ROCm device and client capability information.""" + if help_result is None: + help_result = SimpleNamespace(returncode=0, stdout='\n'.join(_MXFP4_HELP_OPTIONS)) + benchmark = hipblaslt_function.HipBlasLtBenchmark(self.benchmark_name, parameters=parameters) + properties = Mock(return_value=SimpleNamespace(gcnArchName=arch), side_effect=device_error) + cuda = SimpleNamespace(get_device_properties=properties) + with patch.object(hipblaslt_function, 'torch', SimpleNamespace(cuda=cuda)), \ + patch.object(hipblaslt_function, 'run_command', return_value=help_result): + result = benchmark._preprocess() + return benchmark, result + + def make_mxfp4_result_benchmark(self): + """Make a fresh result collector for one requested shape without probing a device or client.""" + benchmark = hipblaslt_function.HipBlasLtBenchmark(self.benchmark_name) + benchmark._args = SimpleNamespace(log_raw_data=False) + benchmark._result = BenchmarkResult(self.benchmark_name, BenchmarkType.MICRO, ReturnCode.SUCCESS, run_count=1) + benchmark._shapes_to_run = [(64, 128, 256, 0, 'mxfp4')] + benchmark._precision_in_commands = ['mxfp4'] + return benchmark + + def assert_invalid_mxfp4(self, output): + """Check that a rejected row publishes neither correctness nor performance metrics.""" + benchmark = self.make_mxfp4_result_benchmark() + self.assertFalse(benchmark._process_raw_result(0, output)) + self.assertEqual(benchmark.return_code, ReturnCode.MICROBENCHMARK_RESULT_PARSING_FAILURE) + self.assertEqual(set(benchmark.result), {'return_code'}) + + def mxfp4_output(self, overrides=None, missing=(), reverse=False): + """Build synthetic CSV, not a captured GPU result.""" + row = { + 'transA': 'T', + 'transB': 'N', + 'batch_count': '1', + 'm': '64', + 'n': '128', + 'k': '256', + 'a_type': 'f4_r', + 'b_type': 'f4_r', + 'c_type': 'f32_r', + 'd_type': 'f32_r', + 'compute_type': 'f32_r', + 'scaleA': '3', + 'scaleB': '3', + 'hipblaslt-Gflops': '1048.576', + 'us': '4', + 'norm_error': '1e-6', + 'atol': '0.0001', + 'rtol': '0.0001', + } + row.update(overrides or {}) + for column in missing: + del row[column] + columns = list(row) + if reverse: + columns.reverse() + return '[0]:' + ','.join(columns) + '\n' + ','.join(row[column] for column in columns) + \ + '\n --kernel name: synthetic_mxfp4_kernel\n' + def test_hipblaslt_gemm_cls(self): """Test hipblaslt-bench benchmark class.""" for platform in Platform: @@ -80,6 +150,172 @@ def cmd(t, b, m, n, k): for _k in [8, 12, 16, 20, 24, 28, 32]: self.assertIn(cmd(_t, 0, _m, _n, _k), benchmark._commands) + def test_mxfp4_command_generation(self): + """Check MXFP4 scaling, layout, and standalone verification and timing switches.""" + benchmark, result = self.preprocess_mxfp4() + self.assertTrue(result) + self.assertEqual(len(benchmark._commands), 1) + tokens = shlex.split(benchmark._commands[0]) + for option, value in [ + ('-m', '64'), ('-n', '128'), ('-k', '256'), ('--a_type', 'f4_r'), ('--b_type', 'f4_r'), + ('--c_type', 'f32_r'), ('--d_type', 'f32_r'), ('--compute_type', 'f32_r'), ('--scaleA', '3'), + ('--scaleB', '3'), ('--alpha', '1'), ('--beta', '0'), ('--algo_method', 'heuristic'), + ('--requested_solution', '1'), ('--transA', 'T'), ('--transB', 'N'), ('--initialization', 'maf2_0') + ]: + with self.subTest(option=option): + self.assertEqual(tokens.count(option), 1) + self.assertEqual(tokens[tokens.index(option) + 1], value) + self.assertNotIn('--verify', tokens) + for option in ['--verify_strict', '--use_gpu_timer', '--print_kernel_info']: + with self.subTest(option=option): + self.assertEqual(tokens.count(option), 1) + next_index = tokens.index(option) + 1 + self.assertTrue( + next_index == len(tokens) or tokens[next_index].startswith('-'), + '{} must not consume a value'.format(option), + ) + self.assertFalse(any(token.startswith(('--scaleABlock', '--scaleBBlock')) for token in tokens)) + self.assertEqual(benchmark.raw_data['mxfp4_gpu_arch'][0], 'gfx1250') + self.assertNotIn('mxfp4_client_help', benchmark.raw_data) + + def test_mxfp4_invalid_arguments(self): + """Reject unsupported layouts, initialization, shapes, or counts.""" + valid = _MXFP4_PARAMETERS + invalid = [ + valid.replace('--transA T', '--transA N'), + valid.replace('--transB N', '--transB T'), + valid.replace('--initialization maf2_0', '--initialization rand_int'), + valid.replace('--in_types mxfp4', '--in_types fp16'), + valid.replace('--in_types mxfp4', '--in_types mxfp4 fp16'), + valid.replace('--in_types mxfp4', '--in_types fp16 mxfp4').replace('maf2_0', 'hpl') + ' --tolerant_fail', + valid.replace('64,128,256', '64,128,257'), + valid.replace('64,128,256', '0,128,256'), + valid + ' --batch 1', + valid + ' --num_warmup -1', + valid + ' --num_steps 0', + ] + for parameters in invalid: + with self.subTest(parameters=parameters): + benchmark, result = self.preprocess_mxfp4(parameters) + self.assertFalse(result) + self.assertEqual(benchmark.return_code, ReturnCode.INVALID_ARGUMENT) + self.assertEqual(benchmark._commands, []) + + def test_mxfp4_unsupported_devices(self): + """Reject older GPUs and unqualified future architectures without generating commands.""" + for arch in ['gfx942', 'gfx1251']: + with self.subTest(arch=arch): + benchmark, result = self.preprocess_mxfp4(arch=arch) + self.assertFalse(result) + self.assertEqual(benchmark.return_code, ReturnCode.MICROBENCHMARK_UNSUPPORTED_ARCHITECTURE) + self.assertEqual(benchmark._commands, []) + benchmark, result = self.preprocess_mxfp4(device_error=AssertionError('Invalid device id')) + self.assertFalse(result) + self.assertEqual(benchmark.return_code, ReturnCode.MICROBENCHMARK_DEVICE_GETTING_FAILURE) + self.assertEqual(benchmark._commands, []) + + def test_mxfp4_client_capabilities(self): + """Reject old client options and explicit capability-query failures.""" + help_text = '\n'.join(_MXFP4_HELP_OPTIONS) + with patch.object(BenchmarkResult, 'add_raw_data', autospec=True) as record: + benchmark, ready = self.preprocess_mxfp4(_MXFP4_PARAMETERS + ' --log_raw_data') + self.assertTrue(ready) + record.assert_any_call(benchmark._result, 'mxfp4_client_help', help_text, True) + + for output in [ + SimpleNamespace(returncode=0, stdout=help_text.replace('3 = B32E8', '3 = block')), + SimpleNamespace(returncode=0, stdout=help_text.replace('3 = B32E8', '3 = B16E8', 1)), + SimpleNamespace(returncode=0, stdout=help_text.replace('maf2_0', 'maf2_0_unit_scale')), + SimpleNamespace(returncode=1, stdout='Cannot load hipBLASLt'), + ]: + with self.subTest(output=output): + benchmark, result = self.preprocess_mxfp4(help_result=output) + self.assertFalse(result) + expected = ReturnCode.INVALID_ARGUMENT if output.returncode == 0 else \ + ReturnCode.MICROBENCHMARK_EXECUTION_FAILURE + self.assertEqual(benchmark.return_code, expected) + self.assertEqual(benchmark._commands, []) + self.assertEqual(benchmark.raw_data['mxfp4_client_help'], [output.stdout]) + + help_result = SimpleNamespace(returncode=0, stdout=help_text.replace('3 = B32E8', '3=b32e8')) + self.assertTrue(self.preprocess_mxfp4(help_result=help_result)[1]) + for missing in _MXFP4_HELP_OPTIONS: + with self.subTest(missing=missing): + help_result = SimpleNamespace( + returncode=0, stdout='\n'.join(option for option in _MXFP4_HELP_OPTIONS if option != missing) + ) + benchmark, result = self.preprocess_mxfp4(help_result=help_result) + self.assertFalse(result) + self.assertEqual(benchmark.return_code, ReturnCode.INVALID_ARGUMENT) + + def test_mxfp4_subprocess_status(self): + """A nonzero client exit must suppress metrics even when it prints a valid row.""" + benchmark, result = self.preprocess_mxfp4() + self.assertTrue(result) + output = SimpleNamespace(returncode=2, stdout=self.mxfp4_output()) + with patch('superbench.benchmarks.micro_benchmarks.micro_base.run_command', return_value=output): + self.assertFalse(benchmark._benchmark()) + self.assertEqual(benchmark.return_code, ReturnCode.MICROBENCHMARK_EXECUTION_FAILURE) + self.assertEqual(set(benchmark.result), {'return_code'}) + + def test_mxfp4_result_parsing(self): + """Check reordered columns, exact metric units, and the norm threshold boundary.""" + for reverse, norm in [(False, '1e-6'), (True, '9.999e-6')]: + with self.subTest(reverse=reverse, norm=norm): + benchmark = self.make_mxfp4_result_benchmark() + output = self.mxfp4_output({'norm_error': norm}, reverse=reverse) + column_count = len(output.splitlines()[0].split(',')) + footer = 'diagnostic: ' + ','.join(['detail'] * column_count) + self.assertTrue(benchmark._process_raw_result(0, output + footer)) + self.assertAlmostEqual(benchmark.result['mxfp4_1_64_128_256_flops'][0], 1.048576) + self.assertEqual(benchmark.result['mxfp4_1_64_128_256_time'], [4]) + self.assertEqual(benchmark.result['mxfp4_1_64_128_256_norm_error'], [float(norm)]) + self.assertEqual(benchmark.result['mxfp4_1_64_128_256_correctness'], [1]) + self.assertEqual(benchmark.return_code, ReturnCode.SUCCESS) + self.assert_invalid_mxfp4(self.mxfp4_output({'m': '128', 'n': '64'})) + + def test_mxfp4_result_requires_valid_command_index(self): + """Do not report wrapper bookkeeping errors as malformed client output.""" + for index, error in [(1, IndexError), (None, TypeError)]: + with self.subTest(index=index), self.assertRaises(error): + self.make_mxfp4_result_benchmark()._process_raw_result(index, self.mxfp4_output()) + + def test_mxfp4_invalid_results(self): + """Reject wrong cases, fallback dtypes, invalid metrics, and failed CPU verification.""" + for column, value in [ + ('m', '256'), ('n', '256'), ('k', '128'), ('batch_count', '2'), ('transA', 'N'), ('transB', 'T'), + ('a_type', 'f16_r'), ('b_type', 'f16_r'), ('c_type', 'f16_r'), ('d_type', 'f16_r'), + ('compute_type', 'f16_r'), ('scaleA', '0'), ('scaleB', '1'), ('us', '0'), ('us', '-1'), ('us', 'nan'), + ('us', 'inf'), ('hipblaslt-Gflops', '0'), ('hipblaslt-Gflops', '-1'), ('hipblaslt-Gflops', 'nan'), + ('hipblaslt-Gflops', 'inf'), ('hipblaslt-Gflops', '10'), ('norm_error', '1e-5'), ('norm_error', '-1'), + ('norm_error', 'nan'), ('norm_error', 'inf'), ('atol', 'failed'), ('rtol', 'failed'), ('atol', 'nan'), + ('rtol', 'inf'), ('rtol', '-1') + ]: + with self.subTest(column=column, value=value): + self.assert_invalid_mxfp4(self.mxfp4_output({column: value})) + + def test_mxfp4_incomplete_results(self): + """Reject absent verification columns, malformed CSV, and multiple algorithm results.""" + output = self.mxfp4_output() + header, row, kernel = output.splitlines() + invalid = [ + self.mxfp4_output(missing=[column]) for column in ['a_type', 'scaleA', 'norm_error', 'atol', 'rtol', 'us'] + ] + invalid.extend( + [ + header + '\n', + header + '\n' + row + ',extra\n' + kernel, + header + ',m\n' + row + ',128\n' + kernel, + header + '\n' + row + '\n', + output.replace('synthetic_mxfp4_kernel', ' '), + output + output, + 'No supported solutions found', + ] + ) + for raw_output in invalid: + with self.subTest(raw_output=raw_output): + self.assert_invalid_mxfp4(raw_output) + def test_hipblaslt_gemm_result_parsing(self): """Test hipblaslt-bench benchmark result parsing.""" benchmark = self.get_benchmark()