pystencils.codegen.config.VectorizationOptions

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_aligned

Assume field pointer alignment.

assume_inner_stride_one

Assume stride associated with the innermost spatial coordinate of all fields is one.

enable

Enable intrinsic vectorization.

lanes

Number of SIMD lanes to be used in vectorization.

use_nontemporal_stores

Enable nontemporal (streaming) stores.

Parameters: