diff --git a/docs/user-tutorial/benchmarks/micro-benchmarks.md b/docs/user-tutorial/benchmarks/micro-benchmarks.md index 4b385c10d..ba70a476d 100644 --- a/docs/user-tutorial/benchmarks/micro-benchmarks.md +++ b/docs/user-tutorial/benchmarks/micro-benchmarks.md @@ -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 diff --git a/tests/benchmarks/micro_benchmarks/test_cublaslt_function.py b/tests/benchmarks/micro_benchmarks/test_cublaslt_function.py index c7fe25b9a..2945c8583 100644 --- a/tests/benchmarks/micro_benchmarks/test_cublaslt_function.py +++ b/tests/benchmarks/micro_benchmarks/test_cublaslt_function.py @@ -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."""