Unverified Commit 35114bae authored by guoshzhao's avatar guoshzhao Committed by GitHub
Browse files

Benchmarks: Code Revision - Rename kernel_launch_overhead metrics (#171)

**Description**
Rename `kernel_launch_overhead_event` to `event_overhead`, `kernel_launch_overhead_wall` to `wall_overhead`.
parent 666e3a94
......@@ -100,8 +100,8 @@ def _process_raw_result(self, cmd_idx, raw_output):
)
return False
self._result.add_result('kernel_launch_overhead_event', result[0])
self._result.add_result('kernel_launch_overhead_wall', result[1])
self._result.add_result('event_overhead', result[0])
self._result.add_result('wall_overhead', result[1])
return True
......
......@@ -36,7 +36,7 @@ def test_kernel_launch_overhead():
assert ('raw_output_0' in benchmark.raw_data)
assert (len(benchmark.raw_data['raw_output_0']) == 1)
assert (isinstance(benchmark.raw_data['raw_output_0'][0], str))
for metric in ['kernel_launch_overhead_event', 'kernel_launch_overhead_wall']:
for metric in ['event_overhead', 'wall_overhead']:
assert (metric in benchmark.result)
assert (len(benchmark.result[metric]) == 1)
assert (isinstance(benchmark.result[metric][0], numbers.Number))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment