Partilhar via


OMP_SCHEDULE

Modifies the behavior of the schedule clause when schedule(runtime) is specified in a for or parallel for directive.

set OMP_SCHEDULE[=type[,size]]

Remarks

where,

  • size (optional)
    Specifies the size of iterations. size must be a positive integer. The default is 1, except when type is static. Not valid when type is runtime.

  • type
    The kind of scheduling:

    • dynamic

    • guided

    • runtime

    • static

Remarks

The default value in the Visual C++ implementation of the OpenMP standard is OMP_SCHEDULE=static,0.

For more information, see 4.1 OMP_SCHEDULE.

Example

The following command sets the OMP_SCHEDULE environment variable:

set OMP_SCHEDULE="guided,2"

The following command displays the current setting of the OMP_SCHEDULE environment variable:

set OMP_SCHEDULE

See Also

Reference

OpenMP Environment Variables