Commit c21e7e17 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

flake8

parent fe314070
Pipeline #32523 passed with stage
in 65 minutes and 25 seconds
...@@ -40,8 +40,8 @@ def create_kernel(assignments: AssignmentOrAstNodeList, function_name: str = "ke ...@@ -40,8 +40,8 @@ def create_kernel(assignments: AssignmentOrAstNodeList, function_name: str = "ke
skip_independence_check: don't check that loop iterations are independent. This is needed e.g. for skip_independence_check: don't check that loop iterations are independent. This is needed e.g. for
periodicity kernel, that access the field outside the iteration bounds. Use with care! periodicity kernel, that access the field outside the iteration bounds. Use with care!
allow_double_writes: If True, don't check if every field is only written at a single location. This is required allow_double_writes: If True, don't check if every field is only written at a single location. This is required
for example for kernels that are compiled with loop step sizes > 1, that handle multiple cells for example for kernels that are compiled with loop step sizes > 1, that handle multiple
at once. Use with care! cells at once. Use with care!
Returns: Returns:
AST node representing a function, that can be printed as C or CUDA code AST node representing a function, that can be printed as C or CUDA code
......
...@@ -195,7 +195,7 @@ def make_loop_over_domain(body, iteration_slice=None, ghost_layers=None, loop_or ...@@ -195,7 +195,7 @@ def make_loop_over_domain(body, iteration_slice=None, ghost_layers=None, loop_or
if iteration_slice is None: if iteration_slice is None:
begin = ghost_layers[loop_coordinate][0] begin = ghost_layers[loop_coordinate][0]
end = shape[loop_coordinate] - ghost_layers[loop_coordinate][1] end = shape[loop_coordinate] - ghost_layers[loop_coordinate][1]
new_loop = ast.LoopOverCoordinate(current_body, loop_coordinate, begin, end) new_loop = ast.LoopOverCoordinate(current_body, loop_coordinate, begin, end, 1)
current_body = ast.Block([new_loop]) current_body = ast.Block([new_loop])
else: else:
slice_component = iteration_slice[loop_coordinate] slice_component = iteration_slice[loop_coordinate]
......
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