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
Argument to the OpenMP
collapse
clauseEnable OpenMP instrumentation
Nesting depth of the loop that should be parallelized.
Set the number of OpenMP threads to execute the parallel region.
If set to
True
, the OpenMPparallel
construct is omitted, producing just a#pragma omp for
.Argument to the OpenMP
schedule
clause- Parameters:
enable (BasicOption[bool])
nesting_depth (BasicOption[int])
collapse (BasicOption[int])
schedule (BasicOption[str])
num_threads (BasicOption[int])
omit_parallel_construct (BasicOption[bool])