Developer Guide and Reference

ID 767253
Date 10/31/2024
Public
Document Table of Contents

fopenmp-target-loopopt, Qopenmp-target-loopopt

Enables the loop optimizer and auto-vectorization for OpenMP* offloading device compilation when option O2 or higher is set or specified.

Syntax

Linux:

-fopenmp-target-loopopt

Windows:

/Qopenmp-target-loopopt

Arguments

None

Default

OFF

The compiler uses default heuristics for optimization.

Description

This option enables the loop optimizer and auto-vectorization for OpenMP* offloading device compilation when option O2 or higher is set or specified.

This option is only valid for SPIR64-based devices.

NOTE:

When OpenMP offloading is enabled, this option only applies to device-specific compilation.

IDE Equivalent

None

Alternate Options

None