pystencils.codegen.config.CreateKernelConfig#
- class pystencils.codegen.config.CreateKernelConfig(target=None, jit=None, function_name=None, ghost_layers=None, iteration_slice=None, index_field=None, index_dtype=None, default_dtype=None, allow_double_writes=None, skip_independence_check=None, cpu=None, gpu=None, sycl=None)#
Options for create_kernel.
Methods
__init__([target, jit, function_name, ...])copy()Perform a semi-deep copy of this configuration object.
get_jit()Returns either the user-specified JIT compiler, or infers one from the target if none is given.
get_option(name)Get the value set for the specified option, or the option's default value if none has been set.
is_option_set(name)override(other)validate_default_dtype(spec)validate_index_field(idx_field)validate_index_type(spec)Attributes
If True, don't check if every field is only written at a single location.
Options for CPU kernels.
Default numeric data type.
Name of the generated function
Specifies the number of ghost layers of the iteration region.
Options for GPU Kernels.
Data type used for all index calculations.
Index field for a sparse kernel.
Specifies the kernel's iteration slice.
Just-in-time compiler used to compile and load the kernel for invocation from the current Python environment.
By default the assignment list is checked for read/write independence.
Options for SYCL kernels.
The code generation target.
- Parameters:
target (BasicOption[Target])
jit (BasicOption[JitBase])
function_name (BasicOption[str])
ghost_layers (BasicOption[_AUTO_TYPE | int | Sequence[int | tuple[int, int]]])
iteration_slice (BasicOption[int | slice | tuple[int | slice]])
index_field (BasicOption[Field])
index_dtype (Option[PsIntegerType, UserTypeSpec])
default_dtype (Option[PsScalarType, UserTypeSpec])
allow_double_writes (BasicOption[bool])
skip_independence_check (BasicOption[bool])
cpu (Category[CpuOptions])
gpu (Category[GpuOptions])
sycl (Category[SyclOptions])