/ OpenMP Directives: Data Scope Attribute Clauses: SHARED Clause
OpenMP Directives: Data Scope Attribute Clauses: SHARED Clause
The SHARED clause declares variables in its list to be shared among all threads in the team.
A shared variable exists in only one memory location and all threads can read or write to that address.
It is the programmer’s responsibility to ensure that multiple threads properly access SHARED variables (such as via CRITICAL sections).
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