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
Jonas Plewinski
pystencils
Commits
8a64bb33
Commit
8a64bb33
authored
May 18, 2018
by
Martin Bauer
Browse files
Bugfix in vectorization of split kernels
parent
9d5fdeb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
backends/cbackend.py
View file @
8a64bb33
...
...
@@ -126,6 +126,7 @@ class CBackend:
method_name
=
"_print_"
+
cls
.
__name__
if
hasattr
(
self
,
method_name
):
return
getattr
(
self
,
method_name
)(
node
)
raise
NotImplementedError
(
"CBackend does not support node of type "
+
str
(
type
(
node
)))
def
_print_KernelFunction
(
self
,
node
):
...
...
@@ -182,7 +183,7 @@ class CBackend:
code
=
"{dtype} {name}=({dtype})aligned_alloc({align}, {size}) + {offset};"
return
code
.
format
(
dtype
=
node
.
symbol
.
dtype
,
name
=
self
.
sympy_printer
.
doprint
(
node
.
symbol
.
name
),
size
=
int
(
size
),
size
=
self
.
sympy_printer
.
dopr
int
(
size
),
offset
=
int
(
node
.
offset
(
align
)),
align
=
align
)
...
...
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