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

ID 767253
Date 11/07/2023
Public

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

Document Table of Contents

fvec-remainder-loops, Qvec-remainder-loops

Enables remainder loop vectorization.

Syntax

Linux:

-fvec-remainder-loops

-fno-vec-remainder-loops

Windows:

/Qvec-remainder-loops

/Qvec-remainder-loops-

Arguments

None

Default

-fno-vec-remainder-loops
or /Qvec-remainder-loops-

No remainder loop vectorization occurs.

Description

This option enables vectorization of remainder loops created during loop vectorization. It causes the compiler to perform additional steps to vectorize the remainder loop that was created for the vectorized main loop.

The compiler uses the cost model to determine vector factor and mode of vectorization for remainder loops.

The vectorization of remainder can be enforced using #pragma vector vecremainder on the loop.

IDE Equivalent

None

Alternate Options

None