Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

vec, Qvec

Enables or disables vectorization.

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.

NOTE:

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.

IDE Equivalent
None
Alternate Options

None