Intel® Fortran Compiler

Developer Guide and Reference

ID 767251
Date 4/28/2026
Public
Document Table of Contents

THREADSET Clause

Parallel Directive Clause: Specifies the set of threads that execute tasks generated by the construct it appears on.

Syntax

THREADSET (threads)

threads

Is either OMP_TEAM or OMP_POOL.

At most one THREADSET clause can appear on a directive that allows the clause.

If threads is OMP_TEAM, the tasks generated by the directive containing the THREADSET directive are scheduled to threads of the current team. If threads is OMP_POOL, the tasks generated by the construct may be scheduled to unassigned threads of the current team and to unassigned threads of the current OpenMP thread pool.

If THREADSET is not specified on a construct on which it is permitted, the effect is as if it appeared with OMP_TEAM as its threads argument. If the task encountering a construct that may have the THREADSET clause specified is a final task, the clause is ignored.