Skip to content
Snippets Groups Projects
Commit 8a651aa4 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Make CUDA a language (not only a dialect :wink:)

parent dbc890ac
Branches
Tags
1 merge request!9Add CudaBackend, CudaSympyPrinter
...@@ -58,6 +58,7 @@ class CudaBackend(CBackend): ...@@ -58,6 +58,7 @@ class CudaBackend(CBackend):
class CudaSympyPrinter(CustomSympyPrinter): class CudaSympyPrinter(CustomSympyPrinter):
language = "CUDA"
def __init__(self): def __init__(self):
super(CudaSympyPrinter, self).__init__() super(CudaSympyPrinter, self).__init__()
......
...@@ -55,7 +55,7 @@ def test_cuda_unknown(): ...@@ -55,7 +55,7 @@ def test_cuda_unknown():
ast = pystencils.create_kernel(assignments, 'gpu') ast = pystencils.create_kernel(assignments, 'gpu')
code = str(pystencils.show_code(ast)) code = str(pystencils.show_code(ast))
print(code) print(code)
assert "Not supported" in code assert "Not supported in CUDA" in code
def main(): def main():
......
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