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
8a651aa4
Commit
8a651aa4
authored
Jul 12, 2019
by
Stephan Seitz
Browse files
Make CUDA a language (not only a dialect
😉
)
parent
dbc890ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
pystencils/backends/cuda_backend.py
View file @
8a651aa4
...
...
@@ -58,6 +58,7 @@ class CudaBackend(CBackend):
class
CudaSympyPrinter
(
CustomSympyPrinter
):
language
=
"CUDA"
def
__init__
(
self
):
super
(
CudaSympyPrinter
,
self
).
__init__
()
...
...
pystencils_tests/test_cuda_known_functions.py
View file @
8a651aa4
...
...
@@ -55,7 +55,7 @@ def test_cuda_unknown():
ast
=
pystencils
.
create_kernel
(
assignments
,
'gpu'
)
code
=
str
(
pystencils
.
show_code
(
ast
))
print
(
code
)
assert
"Not supported"
in
code
assert
"Not supported
in CUDA
"
in
code
def
main
():
...
...
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