Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/user-tutorial/benchmarks/micro-benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ performance measurements.
| cublaslt-gemm/${dtype}\_${batch}\_${m}\_${n}\_${k}_flops | FLOPS (TFLOPS) | TFLOPS of measured GEMM kernel. |
| hipblaslt-gemm/${dtype}\_${batch}\_${m}\_${n}\_${k}_flops | FLOPS (TFLOPS) | TFLOPS of measured GEMM kernel. |

For `cublaslt-gemm`, FLOPS and Nsight Compute metric names use the `--in_types` value as their prefix, even with autotuning.

### `cublas-function`

#### Introduction
Expand Down
20 changes: 20 additions & 0 deletions tests/benchmarks/micro_benchmarks/test_cublaslt_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,26 @@ def cmd(t, b, m, n, k):
for _m in [32, 128]:
self.assertIn(cmd(_t, _b, _m, 128, 128), benchmark._commands)

@decorator.load_data('tests/data/cublaslt_ncu.log')
def test_cublaslt_gemm_profiling_with_autotune(self, raw_output):
"""Keep profiling results separate for two input types with the same shape."""
benchmark = self.get_benchmark(
'--shapes 2208,2048,5608 --in_types fp16 fp64 --enable_autotune '
'--enable_ncu_profiling --profiling_metrics DRAM_Throughput'
)
self.assertTrue(benchmark._preprocess())
self.assertTrue(benchmark._process_raw_result(0, raw_output))
self.assertTrue(benchmark._process_raw_result(1, raw_output))
self.assertEqual(
benchmark.result, {
'return_code': [ReturnCode.SUCCESS.value],
'fp16_0_2208_2048_5608_flops': [141.598150],
'fp64_0_2208_2048_5608_flops': [141.598150],
'fp16_0_2208_2048_5608_DRAM_Throughput': [0.74],
'fp64_0_2208_2048_5608_DRAM_Throughput': [0.74],
}
)

@decorator.load_data('tests/data/cublaslt_ncu.log')
def test_cublaslt_gemm_result_parsing(self, raw_output):
"""Test cublaslt-gemm benchmark result parsing."""
Expand Down
Loading