Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonas Plewinski
pystencils
Commits
9bfd862f
Commit
9bfd862f
authored
Apr 14, 2019
by
Martin Bauer
Browse files
Fixes
- style changes marked by flake - using newest kerncraft version
parent
a821c46a
Changes
1
Show whitespace changes
Inline
Side-by-side
pystencils/backends/cbackend.py
View file @
9bfd862f
...
...
@@ -16,13 +16,14 @@ from pystencils.integer_functions import bitwise_xor, bit_shift_right, bit_shift
bitwise_or
,
modulo_ceil
from
pystencils.astnodes
import
Node
,
KernelFunction
from
pystencils.data_types
import
create_type
,
PointerType
,
get_type_of_expression
,
VectorType
,
cast_func
,
\
vector_memory_access
,
reinterpret_cast_func
,
get_base_type
vector_memory_access
,
reinterpret_cast_func
__all__
=
[
'generate_c'
,
'CustomCodeNode'
,
'PrintNode'
,
'get_headers'
,
'CustomSympyPrinter'
]
KERNCRAFT_NO_TERNARY_MODE
=
False
def
generate_c
(
ast_node
:
Node
,
signature_only
:
bool
=
False
,
dialect
=
'c'
)
->
str
:
"""Prints an abstract syntax tree node as C or CUDA code.
...
...
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