From 053334f9e04b5e81ee071eacc374b449c63b5fb6 Mon Sep 17 00:00:00 2001 From: Christoph Alt <christoph.alt@fau.de> Date: Tue, 1 Aug 2023 09:20:10 +0200 Subject: [PATCH] added documentation for likwid flag --- pystencils_benchmark/benchmark.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pystencils_benchmark/benchmark.py b/pystencils_benchmark/benchmark.py index 41d7410..0ee2218 100644 --- a/pystencils_benchmark/benchmark.py +++ b/pystencils_benchmark/benchmark.py @@ -95,6 +95,7 @@ def kernel_main(kernels_ast: List[KernelFunction], *, Args: kernels_ast: A list of the pystencils AST object as returned by create_kernel for benchmarking timing: add timing output to the code, prints time per iteration to stdout + likwid: add likwid marker to the code Returns: C code as string """ @@ -134,7 +135,8 @@ def kernel_main(kernels_ast: List[KernelFunction], *, size = dim1_size * padding_bytes + np.prod(field.shape) * size_data_type assert align % np_dtype.itemsize == 0 - offset = ((dim0_size + padding_elements + ghost_layers) % kernel.instruction_set['width']) * size_data_type + offset = ((dim0_size + padding_elements + ghost_layers) % + kernel.instruction_set['width']) * size_data_type else: size = elements * size_data_type offset = 0 -- GitLab