Developer Guide and Reference

Contents

vec-threshold, Qvec-threshold

Sets a threshold for the vectorization of loops.

Syntax

Linux and macOS:
-vec-threshold
[
n
]
Windows:
/Qvec-threshold
[[
:]
n
]
Arguments
n
Is an integer whose value is the threshold for the vectorization of loops. Possible values are 0 through 100.
If
n
is 0, loops get vectorized always, regardless of computation work volume.
If
n
is 100, loops get vectorized when performance gains are predicted based on the compiler analysis data. Loops get vectorized only if profitable vector-level parallel execution is almost certain.
The intermediate 1 to 99 values represent the percentage probability for profitable speed-up. For example,
n
=50 directs the compiler to vectorize only if there is a 50% probability of the code speeding up if executed in vector form.
Default
-vec-threshold100
or
/Qvec-threshold100
Loops get vectorized only if profitable vector-level parallel execution is almost certain. This is also the default if you do not specify