An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.


Home

OpenMP Directives: Data Scope Attribute Clauses: COPYPRIVATE Clause

Purpose:

  • The COPYPRIVATE clause can be used to broadcast values acquired by a single thread directly to all instances of the private variables in the other threads.
  • Associated with the SINGLE directive
  • See the most recent OpenMP specs document for additional discussion and examples.

Format:

Fortran

COPYPRIVATE (list)

C/C++

copyprivate  (list)