OpenMP Directives: Data Scope Attribute Clauses: FIRSTPRIVATE Clause

Purpose:

The FIRSTPRIVATE clause combines the behavior of the PRIVATE clause with automatic initialization of the variables in its list.

Format:

Fortran

FIRSTPRIVATE (list)

C/C++

firstprivate (list)

Notes:

Listed variables are initialized according to the value of their original objects prior to entry into the parallel or work-sharing construct.