pystencils.codegen.driver.KernelFactory#
- class pystencils.codegen.driver.KernelFactory(ctx)#
Factory for wrapping up backend and IR objects into exportable kernels and function objects.
- Parameters:
ctx (KernelCreationContext)
- create_lambda(expr)#
Create a Lambda from an expression.
- Return type:
- Parameters:
expr (PsExpression)
- create_generic_kernel(platform, body, function_name, target_spec, jit)#
Create a kernel for a generic target
- create_gpu_kernel(platform, body, function_name, target_spec, jit, launch_config_factory)#
Create a kernel for a GPU target