pystencils.codegen.config.VectorizationOptions#
- class pystencils.codegen.config.VectorizationOptions(enable=None, lanes=None, use_nontemporal_stores=None, assume_aligned=None, assume_inner_stride_one=None)#
Configuration for the auto-vectorizer.
Methods
__init__
([enable, lanes, ...])copy
()Perform a semi-deep copy of this configuration object.
default_lanes
(target, dtype)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)Attributes
Assume field pointer alignment.
Assume stride associated with the innermost spatial coordinate of all fields is one.
Enable intrinsic vectorization.
Number of SIMD lanes to be used in vectorization.
Enable nontemporal (streaming) stores.
- Parameters:
enable (BasicOption[bool])
lanes (BasicOption[int])
use_nontemporal_stores (BasicOption[bool | Collection[str | Field]])
assume_aligned (BasicOption[bool])
assume_inner_stride_one (BasicOption[bool])