Skip to content
Snippets Groups Projects
Commit 84416f2b authored by Frederik Hennig's avatar Frederik Hennig
Browse files

disable GPU codegen

parent af889888
No related merge requests found
Pipeline #67830 failed with stages
in 2 minutes and 34 seconds
......@@ -3,7 +3,7 @@ from functools import reduce
from pystencils import Target, TypedSymbol
from pystencils_walberla.utility import merge_sorted_lists
from pystencils_walberla.compat import backend_printer, SHAPE_DTYPE, KernelFunction
from pystencils_walberla.compat import backend_printer, SHAPE_DTYPE, KernelFunction, IS_PYSTENCILS_2
# TODO KernelInfo and KernelFamily should have same interface
......@@ -15,6 +15,10 @@ class KernelInfo:
self.varying_parameters = tuple(varying_parameters)
self.parameters = ast.get_parameters() # cache parameters here
if ast.target == Target.GPU and IS_PYSTENCILS_2:
# TODO
raise NotImplementedError("Generating GPU kernels is not yet supported with pystencils 2.0")
@property
def fields_accessed(self):
return self.ast.fields_accessed
......
......@@ -6,7 +6,7 @@ from jinja2.filters import do_indent
from pystencils import Target, TypedSymbol
from pystencils_walberla.utility import merge_lists_of_symbols, merge_sorted_lists
from pystencils_walberla.compat import backend_printer, get_headers, SHAPE_DTYPE
from pystencils_walberla.compat import backend_printer, get_headers, SHAPE_DTYPE, IS_PYSTENCILS_2
"""
......@@ -159,6 +159,10 @@ class KernelCallNode(AbstractKernelSelectionNode):
self.ast = ast
self.parameters = ast.get_parameters() # cache parameters here
if ast.target == Target.GPU and IS_PYSTENCILS_2:
# TODO
raise NotImplementedError("Generating GPU kernels is not yet supported with pystencils 2.0")
@property
def selection_parameters(self) -> Set[TypedSymbol]:
return set()
......
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