Intel® oneAPI DPC++/C++ Compiler

Developer Guide and Reference

ID 767253
Date 10/15/2026
Public
Document Table of Contents

fopenmp-target-loop-stride, Qopenmp-target-loop-stride

Controls the stride of the OpenCL loop emitted for an OpenMP worksharing construct

Syntax

Linux:

-fopenmp-target-loop-stride=arg

Windows:

/Qopenmp-target-loop-stride:arg

Arguments

arg

Can be only one of the following:

local-size

The stride is equal to the kernel’s work-group size.

globals-size

The kernel's global work-size.

one

Constant 1.

Default

-fopenmp-target-loop-stride=local-size

If you do not specify option -fopenmp-target-loop-stride, the default is local-size

Description

Controls the stride of the OpenCL loop emitted for an OpenMP worksharing construct.

Alternate Options

None