Skip to content
Snippets Groups Projects
Commit 06d17e90 authored by Christoph Alt's avatar Christoph Alt
Browse files

make timing an argument for generate benchmark to also allow the

disabling of the timer from outside
parent 053334f9
No related branches found
No related tags found
1 merge request!2Adding likwid markers
Pipeline #54770 skipped
......@@ -23,7 +23,9 @@ def generate_benchmark(kernel_asts: Union[KernelFunction, List[KernelFunction]],
path: Path = None,
*,
compiler: Compiler = Compiler.GCC,
likwid: bool = False) -> None:
timing: bool = True,
likwid: bool = False
) -> None:
if path is None:
path = Path('.')
else:
......@@ -48,7 +50,7 @@ def generate_benchmark(kernel_asts: Union[KernelFunction, List[KernelFunction]],
f.write(source)
with open(src_path / 'main.c', 'w+') as f:
f.write(kernel_main(kernel_asts, likwid=likwid))
f.write(kernel_main(kernel_asts, timing=timing, likwid=likwid))
copy_static_files(path)
compiler_toolchain(path, compiler, likwid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment