/ OpenMP Directives: Data Scope Attribute Clauses: LASTPRIVATE Clause
OpenMP Directives: Data Scope Attribute Clauses: LASTPRIVATE Clause
The LASTPRIVATE clause combines the behavior of the PRIVATE clause with a copy from the last loop iteration or section to the original variable object.
The value copied back into the original variable object is obtained from the last (sequentially) iteration or section of the enclosing construct.
For example, the team member which executes the final iteration for a DO section, or the team member which does the last SECTION of a SECTIONS context performs the copy with its own values
Lawrence Livermore National Laboratory
7000 East Avenue • Livermore, CA 94550 | LLNL-WEB-458451
Operated by the Lawrence Livermore National Security, LLC for the
Department of Energy's National Nuclear Security Administration
Learn about the Department of Energy's Vulnerability Disclosure Program