pystencils.codegen.config.OpenMpOptions

Contents

pystencils.codegen.config.OpenMpOptions#

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

Configuration options controlling automatic OpenMP instrumentation.

Methods

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

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

num_threads

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

schedule

Argument to the OpenMP schedule clause

Parameters: