インテル® Fortran コンパイラー 16.0 ユーザー・リファレンス・ガイド

LINEAR Clause

Parallel Directive Clause: Specifies that all variables in a list are private to a SIMD task and that they have a linear relationship within the iteration space of a loop.

LINEAR (var1[, var2]...[: step])

var

Is a scalar variable.

step

Is a compile-time positive, integer, scalar constant expression.

For each iteration of a scalar loop, each var is incremented by step. Every iteration of the vector loop increments the variables by VL (vector length)*step. If more than one step is specified for a var, a compile-time error occurs. Multiple LINEAR clauses can be used to specify different values for step.

A variable in a LINEAR clause cannot appear in a REDUCTION, PRIVATE, or LASTPRIVATE clause, or in another LINEAR clause.