Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frederik Hennig
pystencils
Commits
c21e7e17
Commit
c21e7e17
authored
Jun 07, 2021
by
Frederik Hennig
Browse files
flake8
parent
fe314070
Pipeline
#32523
passed with stage
in 65 minutes and 25 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
pystencils/cpu/kernelcreation.py
View file @
c21e7e17
...
...
@@ -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
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
for example for kernels that are compiled with loop step sizes > 1, that handle multiple
cells
at once. Use with care!
for example for kernels that are compiled with loop step sizes > 1, that handle multiple
cells
at once. Use with care!
Returns:
AST node representing a function, that can be printed as C or CUDA code
...
...
pystencils/transformations.py
View file @
c21e7e17
...
...
@@ -195,7 +195,7 @@ def make_loop_over_domain(body, iteration_slice=None, ghost_layers=None, loop_or
if
iteration_slice
is
None
:
begin
=
ghost_layers
[
loop_coordinate
][
0
]
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
])
else
:
slice_component
=
iteration_slice
[
loop_coordinate
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment