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

added documentation for likwid flag

parent b7c6dd59
No related branches found
No related tags found
1 merge request!2Adding likwid markers
...@@ -95,6 +95,7 @@ def kernel_main(kernels_ast: List[KernelFunction], *, ...@@ -95,6 +95,7 @@ def kernel_main(kernels_ast: List[KernelFunction], *,
Args: Args:
kernels_ast: A list of the pystencils AST object as returned by create_kernel for benchmarking 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 timing: add timing output to the code, prints time per iteration to stdout
likwid: add likwid marker to the code
Returns: Returns:
C code as string C code as string
""" """
...@@ -134,7 +135,8 @@ def kernel_main(kernels_ast: List[KernelFunction], *, ...@@ -134,7 +135,8 @@ def kernel_main(kernels_ast: List[KernelFunction], *,
size = dim1_size * padding_bytes + np.prod(field.shape) * size_data_type size = dim1_size * padding_bytes + np.prod(field.shape) * size_data_type
assert align % np_dtype.itemsize == 0 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: else:
size = elements * size_data_type size = elements * size_data_type
offset = 0 offset = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment