Commit 1956c6a3 authored by Martin Bauer's avatar Martin Bauer
Browse files

Merge branch 'bugfix-ghostlayers-gpu' into 'master'

Bugfix: Align calculation of number of ghost layers on GPU with CPU version

See merge request pycodegen/pystencils!65
parents 92231944 c095ee4f
......@@ -27,6 +27,7 @@ def create_cuda_kernel(assignments,
num_buffer_accesses = 0
for eq in assignments:
field_accesses.update(eq.atoms(Field.Access))
field_accesses = {e for e in field_accesses if not e.is_absolute_access}
num_buffer_accesses += sum(1 for access in eq.atoms(Field.Access) if FieldType.is_buffer(access.field))
common_shape = get_common_shape(fields_without_buffers)
......
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