# vec, Qvec

Enables or disables vectorization. This content is specific to C++; it does not apply to DPC++.

## Syntax

Linux: | -vec -no-vec

Windows: | /Qvec /Qvec-

## Arguments

None

## Default

-vec or /Qvec | Vectorization is enabled if option O2 or higher is in effect.

## Description

This option enables or disables vectorization.

To disable vectorization, specify -no-vec (Linux*) or /Qvec- (Windows*).

### Note

Using this option enables vectorization at default optimization levels for both Intel® microprocessors and non-Intel microprocessors. Vectorization may call library routines that can result in additional performance gain on Intel microprocessors than on non-Intel microprocessors.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Advanced Optimization Options