Main Content

Optimize reductions

Description

Generate single instruction, multiple data (SIMD) code for reduction operation loops. A reduction is an operation that reduces a set of elements, such as an array, to a single value using an associative binary operator. For example, calculating the sum of the elements in an array is a reduction operation that uses the addition operator.

Category: Optimization

Settings

Default: Off

On

Generates single instruction, multiple data (SIMD) code for reduction operation loops.

Off

Generates non-parallel for loops for reduction operations.

Dependency

To use this parameter, you must set Instruction set extensions to a valid instruction set.

Command-Line Information

Parameter: OptimizeReductions
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics