pystencils.codegen.config.OpenMpOptions

Contents

pystencils.codegen.config.OpenMpOptions#

class pystencils.codegen.config.OpenMpOptions(enable=None, nesting_depth=None, collapse=None, schedule=None, num_threads=None, omit_parallel_construct=None)#

Configuration options controlling automatic OpenMP instrumentation.

Methods

__init__([enable, nesting_depth, collapse, ...])

copy()

Perform a semi-deep copy of this configuration object.

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

collapse

Argument to the OpenMP collapse clause

enable

Enable OpenMP instrumentation

nesting_depth

Nesting depth of the loop that should be parallelized.

num_threads

Set the number of OpenMP threads to execute the parallel region.

omit_parallel_construct

If set to True, the OpenMP parallel construct is omitted, producing just a #pragma omp for.

schedule

Argument to the OpenMP schedule clause

Parameters: