Skip to content
Snippets Groups Projects

Add `pystencils.make_python_function` used for KernelFunction.compile

Closed Stephan Seitz requested to merge seitz/pystencils:make_python_function into master
4 files
+ 25
4
Compare changes
  • Side-by-side
  • Inline
Files
4
  • `KernelFunction.compile = None` is currently set by the
    `create_kernel` function of each respective backend as partial function
    of `<backend>.make_python_function`.
    
    The code would be clearer with a unified `make_python_function`.
    `KernelFunction.compile` can then be implemented  as a call to this
    function with the respective backend.
 
from pystencils import Field, FieldType
from pystencils.astnodes import Block, KernelFunction, LoopOverCoordinate, SympyAssignment
from pystencils.astnodes import Block, KernelFunction, LoopOverCoordinate, SympyAssignment
from pystencils.data_types import BasicType, StructType, TypedSymbol
from pystencils.data_types import BasicType, StructType, TypedSymbol
from pystencils.field import Field, FieldType
from pystencils.gpucuda.cudajit import make_python_function
from pystencils.gpucuda.cudajit import make_python_function
from pystencils.gpucuda.indexing import BlockIndexing
from pystencils.gpucuda.indexing import BlockIndexing
from pystencils.transformations import (
from pystencils.transformations import (
Loading