Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tom Harke
pystencils
Commits
633ce232
Commit
633ce232
authored
Oct 29, 2019
by
Stephan Seitz
Browse files
Fix create_cuda_kernel to allow CUSTOM_FIELDS to have a different size
parent
f056dbd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/gpucuda/kernelcreation.py
View file @
633ce232
...
...
@@ -20,7 +20,7 @@ def create_cuda_kernel(assignments,
all_fields
=
fields_read
.
union
(
fields_written
)
read_only_fields
=
set
([
f
.
name
for
f
in
fields_read
-
fields_written
])
buffers
=
set
([
f
for
f
in
all_fields
if
FieldType
.
is_buffer
(
f
)])
buffers
=
set
([
f
for
f
in
all_fields
if
FieldType
.
is_buffer
(
f
)
or
FieldType
.
is_custom
(
f
)
])
fields_without_buffers
=
all_fields
-
buffers
field_accesses
=
set
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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